The truth about objects, references, instances and cloning (Trees and Lists

Hello
As a few of you may have know from my postings over the past few weeks, ive been building my first real java ap and trying to learn along the way, hitting a few snags here and there.
One main snag i seem to have been hitting a fair bit is objects and instances, im kinda learning on how they work and what they mean but as a php programmer it seems to be very different.
as pointed out to me if you have objectA=objectB then in php you have two objects that share the same value but in java you have still one object value and one object pointing to the value.
sooo my first question is
if i have this
Object objA=new Object()
Object objB=objA()then object A creates a new memory allocation for the object data right? and object B is simply a reference to the object A memory allocation right?
so therefore there is no instance of objectB? or is there an instance of object B but it just takes up the same memory allocation as object A?
anyway, what is the point of being able to say objB=objA what can that be used for if not for making a copy of an object (i understand now that it doesnt copy an object)
My second question (which i think i actually understand now, but im posting it to see if the answers may help others)
If i have a List structure (e.g. arraylist) then when i add a datatype such as a treemap does it not add the changed treemap, ill try and explain with code
ArrayList mylist=new ArrayList()
Treemap myTree=new Treemap()
myTree.put("hello","howdy");
myTree.put("bye","cya");
mylist.put(myTree);
System.out.println(mylist.toString());
myTree.put("another","one");
mylist.put(myTree);
System.out.println(mylist.toString());now to be honest ive not actually tried that code and it may actually procude the right results, but from my experience so far that similar sort of thing hasnt been working (by the way i know the above code wont compile as is :p)
anyway what i assume is that will output this
[Hello,howdy,bye,cya] <<this is the first system out
[Hello,howdy,bye,cya,another,one  <<this is the second system out
Hello,howdy,bye,cya,another,one] <<this is the second system out
where it should produce this
[Hello,howdy,bye,cya,
Hello,howdy,bye,cya,another,one]
Why when I update the treemap does the arraylist change, is this because the thing that is being put in the array list is infact not an object but simply a reference to an object?
thanks for everyones help so far :)

as pointed out to me if you have objectA=objectB then
in php you have two objects that share the same value
but in java you have still one object value and one
object pointing to the value.Some years ago, I built a small website managing data saved in an XML file using PHP. Being used to Java, I used an OO approach and created classes managing data structures and having setter/getter methods. The fact that PHP did actually create a copy of any object being passed as and argument made me crazy. This way, I wasn't able to reach the same instances from several different places in my code. Instead, I had to put a certain operator ("&" I think) before any reference to force PHP not to make a copy but pass the reference. I also found a note on the PHP site saying that copying was faster than passing the reference, which I actually couldn't believe. If I'm not wrong, they changed the default behaviour in PHP5.
if i have this
Object objA=new Object()
Object objB=objA()then object A creates a new memory allocation for the
object data right? and object B is simply a reference
to the object A memory allocation right?The statement "new <Class>" allocates memory. The reference itself just takes up a few bytes in order to maintain some administrative data (such as the memory address). References are basically like pointers in C, though there's no pointer arithmetics and they can't point to any arbitrary place in memory (only a legal instance or null).
so therefore there is no instance of objectB? or is
there an instance of object B but it just takes up
the same memory allocation as object A?There is an instance of objectB, but it's just the same instance that objectA is pointing at. Both references objectA and objectB contain the same memory address. That's why they'd produce a result of "true" if compared using the "==" operator.
anyway, what is the point of being able to say
objB=objA what can that be used for if not for making
a copy of an object (i understand now that it doesnt
copy an object)Sometimes you don't want to make a copy, as 1) it consumes more memory and 2) you'd lose the reference to it (making it more difficult to tell what instance is actually accessed). If there was no way to pass a reference to an object into a method, methods wouldn't be able to affect the original instance.
Why when I update the treemap does the arraylist
change, is this because the thing that is being put
in the array list is infact not an object but simply
a reference to an object?The ArrayList doesn't change at all. It's the instance that's being changed, and the ArrayList has a reference to it.

Similar Messages

  • TS1702 Hi, I bought The Truth About Love album on itunes as a complete my album from my Iphone4S.  I can see the name of the album as a purchase on my Mac Notebook 2004, however I am not unable to add the music to my itouch and is doesn't show up in music

    Hi,
    I bought the Truth About Love/Pink's album on itunes as a complete my album purchase as I had bought a song from the album previously. I bought it via my Iphone 4S.  When I turn on itunes on my Mac Notebook 2004 (IOS X 10.4.11) I can see the album as a purchase but it is not listed in my library music nor can I add it to my Itouch 2nd generation.  Do you know why?  I can access the songs on my iphone but nowhere else.

    They will only be on your computer's iTunes if you put them there. If you are in a country where you can re-download music then they should show under the Purchased Link under Quick Links on the right-hand side of the iTunes store home page on your computer's iTunes. If they don't show there then you can connect your phone to your computer's iTunes and do File > Devices > Transfer Purchases to copy them over.

  • Macking button to expand the tree and collapse tree and another to add node

    macking button to expand the tree and collapse tree and another to add node and saving the changes in the database ( this is problem)
    and finally delete node from database
    so what is proper code for those buttons
    thanks my mail is :
    [email protected]

    Hello,
    Use the ftree package's functions
    code to expand all nodes:
    PROCEDURE explose_tree IS
    node    ftree.node;
    htree   ITEM;
    state   varchar2(30);
    BEGIN
       -- search the tree ID --
       htree := Find_Item('BL_TREE.TREE_1');
        -- search the root --
           node  := Ftree.Find_Tree_Node(htree, '');
        -- expand all nodes --
       WHILE NOT Ftree.ID_NULL(node) LOOP
          state := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_STATE);
          IF state = Ftree.COLLAPSED_NODE THEN
            Ftree.Set_Tree_Node_Property(htree, node, Ftree.NODE_STATE, Ftree.EXPANDED_NODE);
          END IF;
          node := Ftree.Find_Tree_Node(htree, '', ftree.find_NEXT,Ftree.NODE_LABEL,'', node);
       END LOOP;
    END;and to collapse all nodes:
    PROCEDURE Implose_tree IS
       node   ftree.node;
       htree  ITEM;
       state  varchar2(30);
    BEGIN
       -- search the root ID --
       htree := Find_Item('BL_TREE.TREE_1'); 
       -- search the root --
       node  := Ftree.Find_Tree_Node(htree, '');  
       -- Collapse all nodes --
       WHILE NOT ftree.ID_NULL(node) LOOP
         state := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_STATE);
         IF state = Ftree.EXPANDED_NODE THEN
          Ftree.Set_Tree_Node_Property(htree, node, Ftree.NODE_STATE, Ftree.COLLAPSED_NODE);
         END IF;
        node := Ftree.Find_Tree_Node(htree, '', Ftree.FIND_NEXT,Ftree.NODE_LABEL, '', node);
       END LOOP;
    END; Francois

  • Reveal the truth about these skype hacking and spy...

    Hey, Im a skype user from sometime and I appreciate the great service done through this towards all... But as it's seen, though I thought calling(video n voice) is secure through skype, now I doubt a bit. coz there are so many software available( I really dunno if they work or not) to hack into skype accounts and even to personal webcams through skype without even knowing.... are these all a false or what?
    I lately found out this software available that says; using that, anyone can spy on us by just knowing our skype ID... Is that possible? I saw it when I was just moving around in YouTube. And with all these comments people saying it's really working. I didn't try to download it and find the truth coz I felt its not a good idea as it can affect my computer or my own skype account....
    Can anyone please describe the truth on this.... If you want, I can give the link to that youTube video to see what I'm telling here.....
    Thought this would be a good discussion for the whole skype community....

    p2011 wrote:
    Hey, Im a skype user from sometime and I appreciate the great service done through this towards all... But as it's seen, though I thought calling(video n voice) is secure through skype, now I doubt a bit. coz there are so many software available( I really dunno if they work or not) to hack into skype accounts and even to personal webcams through skype without even knowing.... are these all a false or what?
    I lately found out this software available that says; using that, anyone can spy on us by just knowing our skype ID... Is that possible? I saw it when I was just moving around in YouTube. And with all these comments people saying it's really working. I didn't try to download it and find the truth coz I felt its not a good idea as it can affect my computer or my own skype account....
    Can anyone please describe the truth on this.... If you want, I can give the link to that youTube video to see what I'm telling here.....
    Thought this would be a good discussion for the whole skype community....
    I think that those software that you mentioned could actually do harm in your computer, rather than to do what they claim they can do.  Those programs that claim that can hack Skype calls are most likely fake software and most likely contain viruses/malware/spyware or similar elements.
    People/parties who promote such software also make use of fake social media accounts to put comments saying that their software actually work (which is a very common practice of scammers).  
    and you made the right choice on not to download those programs in your computer.  Who knows what damage they could do in your computer system/accounts.
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • Question about SAP + SLES10 + vSphere and the truth about memory

    Hi,
    we are using vSphere and SLES 10 for a SolutionManager 7.0 on MaxDB 7.6.
    The system is configured with 2 GB RAM in the VM. The database is configured to use 125000 pages as cache (100000 KB).
    Yes, I know the system is configured very small for this usage, but it is a demo system...
    But the system is really slow. I can't figure out whats the problem.
    The RAM is configured with 2 GB in the VM a "free" in linux shows me that there is 500 MB used for file system chache
                 total       used       free     shared    buffers     cached
    Mem:       2076908    2002704      74204          0      28936     578212
    -/+ buffers/cache:    1395556     681352
    Swap:      6185016    3037744    3147272
    so this shoud be ok, for me it is close to the limit...
    But VMware infrastruture client shows me, that there are only 300 MB of the 2GB is used ... but the database should use 1 GB and SAP should use some RAM , too.
    So who tells the truth? Where does the RAM goes to if it is not used in VMware? Could this be the performance problem?
    An other problem is, that the show dev_io of the database shows me very slow access to the files ...
    i.e.
    I/O via Device Processes:
      UNIX Devspace                                                Read    avg_read      Write  avg_write
       tid name                                                           count       time            count       time
    28596 /sapdata/SYS/sapdata/DISKD01       6532     0.0294        101     0.2077
    But VMWare shows that there is nearly no usage of DISK ... average is shown as 150 KBps...
    So again, who tells the truth?
    What else could be the problem?
    Thank you.
    Best regards
    Christian

    > I know 2 GB is less, but the system is still 32 bit Linux, so 6 GB is "impossible".
    Why that? The 32bit limit is a per process limit, not a limit for the amount of total supported memory.
    > During the long weekend the system is switched to an other VMServer I am going to request more RAM. What a pitty that 32 bit does not support more than 3 GB....
    I don't know who told you that but it's wrong
    > But there is still the question whats correct? The linux variant of free or the VMware infrastructure client monitoring the RAM?
    > What could slow down the Database IO performance?
    > USE_OPEN_DIRECT we are already using ...
    Are you sure it's the I/O peformance? A couple of questions arise then:
    - What filesystem is underneath?
    - How are your data files distributed?
    - What are your I/O times for a single I/O (you can switch that on using DB50 - TAsk manager - and press on the "clock", the time will then be displayed in the database analyzer.
    If you use VMWare on a recent processor you can also switch nicely to a 64bit Linux.
    Markus

  • The truth about pagefile (SSD)

    Good afternoon!
    Two years ago you guys (especially Harm) helped me to build a PC for Premiere. After two years I had to update my disks setup and decided to buy a Samsung 830 SSD for OS. Now, after I've read tons of informations about how to setup the drive, I know nothing...
    As I remember, and as I checked on this forum, if you have 4 disks setup, you should set your pagefile on any other disk but OS disk - especially if You work in Photoshop, which uses pagefile a lot. This statement was totally ok for me until I found these:
    Quote :
    You don't need a pagefile at all with 8 gigs of RAM -- turn it off.
    "This may be true, but it could also cause grief.   Each user is different, and it's dangerous to make generalizations such as this because people use different amounts of RAM depending on the combination of programs and documents/files that they have open at any one point in time.
    To find out how much pagefile you need, run Task Manager (Ctrl+Shift+Esc) and click the "Performance" tab.   The "Memory" bar graph (to the left of the "Physical Memory Usage History" graph) shows how much memory you're using.   Start up all the programs you might possibly run at the same time and use them to open the biggest documents/files/photos/movies that you may ever have open at once. Note the amount of RAM in the bar graph and add perhaps 25% to 50% as a safety margin.   For example, if your bar graph shows 6GB, then you'd probably be safe in assuming that you need no more than 8GB of memory."
    And MORE IMPORTANT:
    "Do you understand what happens to an SSD that has run out of write cycles on it's NAND? It becomes read-only memory. It doesn't simply stop working. I work in manufacturer's SSD R&D (who also makes much of the NAND used in many SSD's) and while typical "current" 25nm and 34nm MLC is rated between 3000-5000 write cycles, it is "conservatively" rated as such.  Neither you or any of your friends who work with Photochop or Win Temp files are blowing through this many write cycles in a 6 month period without doing "other" much more destructive writing.
    In fact it's extremely rare that any SSD has all of it's write cycles burned up. It is FAR more likely that there is a controller failure from firmware or other electrical burnouts/failures, that have nothing to do with the number of write cycle endurance left in the NAND. Even in our labs running 24x7 weeks-long full write tests, which is a thousand times more intensive than photoshop or win pagefiles, we rarely use up all the write cycles of the NAND before other failures occur. While these "other" (aka non NAND write-endurance related) failures suck when they happen, it has nothing to do with anything photoshop or win pagefiles is going to make occur faster or slower.
    If your "friends" are buring out current SSD's in 6 month periods, they are either buying crappy SSD's, doing odd things to the SSD's, or simply have failures they are blaming erroneously on NAND write cycle limitations.  Don't get me wrong, SSD's will fail, but unfortunately, very rarely will the failure be from write cycle endurance life of the NAND, and definately not because the SSD is used with photshop scrathdisks or win pagefiles.
    To use a unpopular automotive analogy, the NAND write cycle life is like the engine of a car that is used where they use salt on the roads to melt ice. While it is possible for the engine to die from being used too much, it is much more likely the body of the car is going to rust/rot away before the engine has outlived it's useful life. And this car does not care if photoshop or win temp files are in the passenger seat. If the SSD fails under 2-3 years of normal use, it won't be because of photoshop or win pagefiles using up the NAND write cycles. "
    As I understand, this guy (who actually produces SSDs) says that firstly -  you CAN set your pagefile on SSD - and secondly - you do NOT need to set up a pagefile for photoshop at all.
    Now I am REALLY confused... I trust Harm and I trust all of your expierence guys and would be very thankful for any information about this.
    P.S. After I bought the SSD I found out that my MB has crappy Marvell SATA3 Controller... :/
    My setup is:
    GA-X58-UDR3
    i7 930 @3.8Ghz
    G.Skill Dual ECO 1.35v CL8 12GB
    GeForce GTX460
    Samsung SSD 830 128GB
    Samsung F3 Spinpoint 2x1TB
    WD something 160GB (just for backup or trash)
    Regards,
    Paul

    Windows8 and possibly Windows7 - I'm not sure about Win7 - will create a pagefile in case of a system hang for the memory dump and it will create that on the C: drive, even if you have a pagefile on another drive. Windows will only start if there is a pagefile. If there is no pagefile defined, it will automatically create a dynamic one on the C: drive.
    With these two items as a given, the question remains, what is wise. Jim always says let Windows decide, so his suggestion is a dynamic page file.
    Pagefiles are a relic of the past, dating back to the times when memory was scarce, only 2, 4 or maybe 8 GB memory and at that moment the rule was to use up to 1.5 to 2.0 x  the amount of memory for the pagefile, a rule Windows still adheres to in its default setting. With systems now abundant that contain 32 or even 64 GB of memory, that no longer holds. You will have a difficult time to run PR where it uses more than 24 GB of memory, let alone 48 or more GB's. (AE is a different matter).
    So, IMO we have to lose the old and outdated assumption that it is best to use a pagefile with a size of 1.5 or 2.0 times the physical memory. It no longer holds true. I think that a sum total of physical memory plus pagefile amounting to around 64 GB is more than enough for most cases. So I suggest the following rule of thumb for your pagefile, depending on your use of PR and AE, the nature of your source material and the complexity of your timelines:
    With less than 32 GB installed, use a static pagefile of X GB to bring the sum total up to 32 - 48 GB.
    With 32 GB installed, use a static pagefile of 32 GB to bring the sum total up to 64 GB.
    With 64 GB installed, use a static pagefile of at least 1 GB, but no more than 16 GB. Everything more is a waste of space.
    I intentionally mention STATIC pagefile, in contrast to Jim's suggestion, who pleads for dynamic pagefiles for the following reason:
    Every time the pagefile changes its size, under Windows direction, it not only means that the data changes, but also that the file allocation table at the beginning of the disk needs to be rewritten to reflect the changed size. Every alteration in file size thus requires extra writing to the SSD, reducing its limited lifespan and leads to fragmentation of that pagefile. A static file does not have these negative consequences. Only data need to be written in the file, no alterations to the file allocation table need to be made. And Windows does not need to keep logs of those changes, further reducing the need to write additional data.
    For example, if your bar graph shows 6GB, then you'd probably be safe in assuming that you need no more than 8GB of memory.
    It is pretty easy with only Premiere Pro open and playing back a timeline to reach 24 GB memory use. Now add a few other applications and it is safe to say you need 32 GB memory at least, so with 8 GB memory, you need to add a pagefile of 24 GB or more.

  • Help or tutorials about ABAP UI programming such as Tree and dock container

    Hi,
    I'm looking for help, tutorials or any ressources I can explore to undertsand how to work in ABAP with controls, containers, tree and so on.
    Each time I do a search on help.sap.com, I found help on a detailed object such as tree or docking container but I never found a global view. I would like to understand the big picture, have an averview of all involved concept. For example, if I want the user screen to be splitted in 2 parts, one that will display a tree, the other one that will display "simple" screen painter trees that will change depending on what user choose using the tree on the left. How do I need to proceed ?
    I'm sorry if I have not a more precise question because I don't found where to begin.
    Thanks for help
    Regards
    Morgan

    Hi Morgan,
    You can start going thorugh the concepts from help.sap.com. Have a look at the following link:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/1b/337930a63011d2bd6b080009b4534c/frameset.htm
    You will get the entire set of Example codes in the Transaction Code : ABAPDOCU.
    You can also look for examples for Dialog Programing in SE38 using the DEMODYNPRO*.
    Have a look at the Package : SLIS. This is a one point of all examples and demo of SAP Control Framework and ALV Functionality.
    Hope this helps.
    Thanks,
    Samantak.

  • Iphone and at&t - the truth about at&t service for the iphone

    i love my iphone.
    the only problem has been using at&t in southern california. in los angeles there are major holes in the service, and multiple hour delays on delivery of voicemails and emails. so ive been on the phone with technical and customer support dealing with this for months.
    Well, yesterday I was on the at&t support line for about an hour with this nice girl that gave my account a credit and finally told me what's really going on and why at&t service and coverage actually ***** so bad.
    here's the scoop straight from their mouths to your eyes:
    -when at&t bought cingular they ended up having too many cell towers for monopoly rules, so they had to sell a whole bunch and then lease back the service capacity that their network here needed.
    -they've gotten cheap and over the past 9 months have not been leasing the entire network capacity as needed.
    -this means dropped calls for you and me, network busy, call failed, no edge connection, and voicemail and email delivery hours or even days late.
    -i asked if there was any remedy in the works, and she told me that they have a plan to build more towers but that it was stalled in the bureaucracy. she said the more complaints they got from customers the sooner these towers will be built.
    -i asked if they were doing anything for their customers and she told me that they would let people out of their contracts early without a penalty because of these issues!
    so, finally i get to the question, how's t-mobile service in southern california? los angeles?
    i also want to get a discussion of service going in general. i know network issues are not apple's fault, but they affect the iphone experience and are going to affect the iphone bottom line eventually as more and more customers grow tired of at&t's business antics. apple does have a responsibility to its customers to be working with at&t to resolve service issues so that i can continue to love my iphone (i sleep with it).

    adrock00,
    Have you been spying on my wife and me?? You are writing, verbatum, our experiences with the iPhone. Same thing - love the iPhone, HATE the AT&T service. It's shameful. I spend a good deal of money a month (paying for two iPhones), and I can not, I swear to you, remember the last time I had a conversation on it without the line being dropped (going through this procedure 3-4 times to complete the call) or completely mangled and incomprehensive for periods of time. Love the 'i' in the iPhone, but hate the "phone" Feel like a fool, really, and stuck. In this land of choices, and quality assurances, shouldn't one be allowed to switch service if the service you signed up for is inadequate. With these contracts, they have you by the cojones and laugh all the way to the bank. Shame.
    Fully agree with you, also, that although Apple has provided an exceptional product, that I can not tell enough great things about, it should carry some of the responsibility for forcing us to use the lousy service provided by AT&T.
    Just my experience. I'm also in LA, BTW.
    Cheers

  • I cant sign in to i-cloud with my new apple id  i signed out of the old one and when i try to log in i just get the 'thinking about it' logo. this lasts for ages and doesn't sign me in.  help!

    Hi, i have recently purchased an i-phone 4s and had been merrily playing away and set up an i cloud account.  However when i tried to access i cloud from my pc i couldn't verify it.  I had to change my apple id because i no longer had access to my old e-mail.  I managed to sort out my i-phone and change all the  accounts to my new apple i.d (except game centre? don't know how to do that yet.)  but when i signed out of my old i-cloud account on my pc and tried to sign in with my new apple id it just tries to connect (i get the i'm thinking about it wheel) for ages; not allowing me to log on.
    Help!

    Content (apps, music, ibooks, films etc) is tied to the account that originally downloaded it, so if the iBooks app was downloaded using the account that you used to share with your ex then only that account can download updates to it. As it's a free app you could delete it and re-download it under your own account - and then re-download your ibooks into it (or copy the books to your computer's iTunes first via File > Transfer Purchases and then sync them back to the app).

  • Question about Object Reference

    I have this situation:
    CREATE OBJECT equipo EXPORTING sernr = p_sernr1
                                   matnr = p_matnr1.
    CALL METHOD equipo->ingreso_directo_homologado
                         EXPORTING centro  = aux_centro
                                   almacen = ga_pos_entregas-almacen              IMPORTING error   = error
                                   texto   = p_texto.
    CREATE OBJECT equipo EXPORTING sernr = p_sernr2
                                   matnr = p_matnr2.
    CALL METHOD equipo->ingreso_directo_homologado
                         EXPORTING centro  = aux_centro
                                   almacen = ga_pos_entregas-almacen              IMPORTING error   = error
                                   texto   = p_texto.
    Could be that second CREATE OBJECT sentence fails, and second CALL METHOD sentence refers to first object created?
    Points guaranteed.

    Hi,
    I have Test the same ; which i have written above . it working fine.
    U can cross check. ( copy paste the code & run it )
    Check the value <b>o_alvgrid</b> in debugging mode.
    u will fine new refrence for each create object.
    DATA  : o_alvgrid       TYPE REF TO cl_gui_alv_grid,
            o_custcontainer TYPE REF TO cl_gui_custom_container,
            o_custcntr_sum  TYPE REF TO cl_gui_custom_container.
    CONSTANTS :
           lc_custcontrol  TYPE scrfname VALUE 'CC_ALV',
           lc_custcntr_sum TYPE scrfname VALUE 'CC_ALV_SUM'  .
        CREATE OBJECT o_custcontainer
          EXPORTING
            container_name              = lc_custcontrol
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            OTHERS                      = 6.
          CREATE OBJECT o_alvgrid
            EXPORTING
              i_parent          = o_custcontainer
            EXCEPTIONS
              error_cntl_create = 1
              error_cntl_init   = 2
              error_cntl_link   = 3
              error_dp_create   = 4
              OTHERS            = 5.
        CREATE OBJECT o_custcntr_sum
          EXPORTING
            container_name              = lc_custcntr_sum
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            OTHERS                      = 6.
          CREATE OBJECT o_alvgrid
            EXPORTING
              i_parent          = o_custcontainer
            EXCEPTIONS
              error_cntl_create = 1
              error_cntl_init   = 2
              error_cntl_link   = 3
              error_dp_create   = 4
              OTHERS            = 5.
    write :/ 'ABC'.
    <b>As per 2nd  post of urs .</b>
    i think result will be unpredictable.
    initial value of refrence variable are always ...illegal refrence.
    it may clear the variable to initial value
    or
    it may retain the current memmory location.
    <b>Reward Points & Mark Helpful Answers</b>

  • The Truth about Apple's Pro Care---

    I am debating whether or not I should purchase Apple's Pro Care for my new ibook. So I am interested in knowing if the level and quality of support is worth the cost.
    -anyone out there have thoughts on this?

    Hi,
    Pro Care is a different option than Apple care for Apple customers. Pro Care gives you the ability to be seen quickly by a Genius, additionally you get one-on-one training by their Creative Genuises. I took advantage of my first one-on-one session last Friday at the Apple Store, SoHo and I was completely impressed. Questions about iLife '06 and more technical issues about transferring delicate files were answered confidently.
    If you're thinking about Pro Care, remember that it's not just care for the machine. Pro Care is support for YOU. For $99, you get personal tutoring for the year! I'm all for it.
    Woody Adams
    iMac G5 2.1 GHz

  • The Truth about Uncatchable Exceptions

    Dear SDN,
    this question must have been raised many times.
    I did not find any convincent answer, so I wanted to discuss and get as close as possible to the final truth.
    I have already had many major problems caused by UNCATCHABLE EXCEPTIONS, wich are nested behind hundreds of standard classes, programs, etc.
    The ABAP runtime environment seems to be far beyond of my development boundaries, which makes me feel completely powerless as a programmer.
    So, my question is: should I definately assume that it is absolutely impossible to treat, or handle somehow, those called "uncatchable exceptions" ??
    Or should I believe that, there still could be an incredible secret that, once shared within this forum, would provide us with a miraculous remote possibility of doing so ?
    Thank you very much.
    Fabio

    Dear SDN,
    this question must have been raised many times.
    I did not find any convincent answer, so I wanted to discuss and get as close as possible to the final truth.
    I have already had many major problems caused by UNCATCHABLE EXCEPTIONS, wich are nested behind hundreds of standard classes, programs, etc.
    The ABAP runtime environment seems to be far beyond of my development boundaries, which makes me feel completely powerless as a programmer.
    So, my question is: should I definately assume that it is absolutely impossible to treat, or handle somehow, those called "uncatchable exceptions" ??
    Or should I believe that, there still could be an incredible secret that, once shared within this forum, would provide us with a miraculous remote possibility of doing so ?
    Thank you very much.
    Fabio

  • The Truth About BB10 Boot Times, Please.

    Hi, devs and support techs.
    I'm just trying to get some sort of official information regarding the reason for the long boot times on the BB10 OS.
    I'm currently on 10.2.1.2102 (2141) and it take a few minutes to boot up. I know that it was changed recently to ensure that the Hub is loaded as soon as the OS says it is done booting.
    People seem to be confused as to exactly why the devices (including BBOS) took so long to boot.
    There are some theories about it scanning the OS to make sure that it is ok before booting.
    Can you please provide some official documentation regarding this and exactly why it takes so long. Some people are claiming that the boot time is inexcusable.
    Honestly, I don't mind it that much - I do think it is long and can be annoying if your device restarts regularly by itself, but mine doesn't so I don't have any issue with it.
    I would rather have a long boot time and a very smooth OS than what I get on other platforms.

    nharzhool wrote:
    Yeah, but sometimes I am awake at stupid hours of the morning and completely forget these very obvious things...also, I'm not what you would call "A smart man". Lol.
    Unfortunately, bringing this up on CrackBerry just incites a furious bickering session between the various fanboys.
    Don't short change yourself. I'm betting you're smarter than 90% of the CB community... since you chose not to post there.
    nharzhool wrote:
    I was hoping there were some App Devs or OS experts that maybe know why this happens...
    Nope, as you can see at the top of every page of this forum, we're a peer-to-peer to community.
    The boot-up time is what it is. I just now rebooted mine... 1:20 seconds... I don't see any big deal.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • What is the truth about flashlights on iPhones being hacked?

    I recently saw a youtube posting:
    Cybersecurity Expert Gary Miliefsky from snoop wall Information about a popular smartphone application that could expose your personal information to cyber criminals-
    https://www.youtube.com/watch?feature=player_embedded&v=Q8xz8xKEFvU#t=0
    which states that flashlight apps are being used as spyware to steal personal information. 
    Is the flashlight that comes factory installed on my iPhone susceptible to such spyware?

    I recently saw a youtube posting:
    Cybersecurity Expert Gary Miliefsky from snoop wall Information about a popular smartphone application that could expose your personal information to cyber criminals-
    https://www.youtube.com/watch?feature=player_embedded&v=Q8xz8xKEFvU#t=0
    which states that flashlight apps are being used as spyware to steal personal information. 
    Is the flashlight that comes factory installed on my iPhone susceptible to such spyware?

  • New-CMTaskSequenceMedia Help : Object Reference Not Set to Instance of Object

    Having trouble creating a script to automate creation of bootable task sequence media. The following returns "Object Reference not set to an instance of an object" and I can't seem to figure it out:
    Import-Module (Join-Path $(Split-Path $env:SMS_ADMIN_UI_PATH) ConfigurationManager.psd1)
    cd CM1:
    $hash =@{}
    $MPServers = @("Server003.fqdn.com","Server004.fqdn.com","Server005.fqdn.com")
    $StartDate = (Get-Date -Format "MM/dd/yyyy.HH:mm:ss").ToString()
    $EndDate = "08/07/2025.12:12:12"
    <#This section to be finished later:
    #$hash.Add("SMSTSPreferredAdvertID","CM10017A")
    #$hash.Add("OSDComputerName","BLDTMP08R2")
    #$hash.Add("SMSTSPreferredAdvertID","CM100169")
    #$hash.Add("OSDComputerName","BLDTMP2012")
    #>
    $hash.Add("SMSTSPreferredAdvertID","CM10016A")
    $hash.Add("OSDComputerName","BLDTMP12R2")
    $hash.Add("NBUType","NONBU")
    $hash.Add("citrixyn","CITRIXOFF")
    $hash.Add("ovoyn","OVOOFF")
    $hash.Add("IsAutomation","YES")
    New-CMTaskSequenceMedia -BootableMediaOption -MediaPath "c:\temp\ISOName.iso" -BootImageId "CM10008F" -MediaInputType "CDDVD" -DistributionPointServerName "Server023.fqdn.com" -ManagementPointServerName "Server003.fqdn.com","Server004.fqdn.com","Server005.fqdn.com" -MediaMode "Dynamic" -ProtectPassword $false -AllowUnattendedDeployment $true -CreateMediaSelfCertificate $True -EnableUnknownSupport $True -StartDate $StartDate -ExpirationDate $EndDate -Variable $Hash

    We are running R2 CU2.
    When I ran the command with -Verbose I recieved:
    PS CM1:\> C:\Users\INAFN\Documents\codeBin\IsoGenerator.ps1
    VERBOSE: Performing operation "New" on Target "TaskSequenceMedia: New".
    VERBOSE: Executing WQL query: SELECT * FROM SMS_BootImagePackage pkg WHERE pkg.ActionInProgress!=3 And pkg.PackageID ='CM10008F'
    VERBOSE: Query returned 1 results.
    VERBOSE: Executing WQL query: Select dp.* from SMS_DistributionPoint As ref Join SMS_DistributionPointInfo As dp On ref.ServerNALPath=dp.NALPath and ref.SiteCode=dp.SiteCode Where ref.PackageID='CM10
    008F' And dp.ServerName ='Servername.Domain.Com'
    VERBOSE: Query returned 1 results.
    VERBOSE: Executing WQL query: SELECT dp.ServerNALPath, dp.State, oci.SourceSize FROM SMS_PackageStatusDistPointsSummarizer AS dp JOIN SMS_BootImagePackage AS pkg ON pkg.PackageID=dp.PackageID JOIN SM
    S_ObjectContentInfo as oci on oci.PackageID=pkg.PackageID WHERE dp.PackageID='CM10008F' AND pkg.ActionInProgress=0
    VERBOSE: Query returned 30 results.
    VERBOSE: Executing WQL query: SELECT scf.* FROM SMS_SCI_SysResUse AS scf JOIN SMS_SITE AS sit ON sit.SiteCode = scf.SiteCode WHERE scf.RoleName='SMS Management Point' AND site.Type != 1
    VERBOSE: Query returned 5 results.
    New-CMTaskSequenceMedia : Object reference not set to an instance of an object.
    At C:\Users\INAFN\Documents\codeBin\IsoGenerator.ps1:25 char:1
    + New-CMTaskSequenceMedia -BootableMediaOption -MediaPath c:\temp\ISOName.iso -BootIm ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [New-CMTaskSequenceMedia], NullReferenceException
    + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.ConfigurationManagement.Cmdlets.Osd.Commands.NewTaskSequenceMediaCommand
    Since it seemed to fail while pulling the MPs I switched to using just one MP as you had above, this time I get a different error:
    PS CM1:\> C:\Users\INAFN\Documents\codeBin\IsoGenerator.ps1
    VERBOSE: Performing operation "New" on Target "TaskSequenceMedia: New".
    VERBOSE: Executing WQL query: SELECT * FROM SMS_BootImagePackage pkg WHERE pkg.ActionInProgress!=3 And pkg.PackageID ='CM10008F'
    VERBOSE: Query returned 1 results.
    VERBOSE: Executing WQL query: Select dp.* from SMS_DistributionPoint As ref Join SMS_DistributionPointInfo As dp On ref.ServerNALPath=dp.NALPath and ref.SiteCode=dp.SiteCode Where ref.PackageID='CM10
    008F' And dp.ServerName ='Servername.Domain.Com'
    VERBOSE: Query returned 1 results.
    VERBOSE: Executing WQL query: SELECT dp.ServerNALPath, dp.State, oci.SourceSize FROM SMS_PackageStatusDistPointsSummarizer AS dp JOIN SMS_BootImagePackage AS pkg ON pkg.PackageID=dp.PackageID JOIN SM
    S_ObjectContentInfo as oci on oci.PackageID=pkg.PackageID WHERE dp.PackageID='CM10008F' AND pkg.ActionInProgress=0
    VERBOSE: Query returned 30 results.
    VERBOSE: Executing WQL query: SELECT scf.* FROM SMS_SCI_SysResUse AS scf JOIN SMS_SITE AS sit ON sit.SiteCode = scf.SiteCode WHERE scf.RoleName='SMS Management Point' AND site.Type != 1
    VERBOSE: Query returned 5 results.
    VERBOSE:
    VERBOSE:
    New-CMTaskSequenceMedia : ConfigMgr Error Object:
    instance of SMS_ExtendedStatus
    Description = "The package name must be at least 1 and less than 50 characters in length.";
    ErrorCode = 1078462208;
    File = "e:\\qfe\\nts\\sms\\siteserver\\sdk_provider\\smsprov\\ssptspackage.cpp";
    Line = 931;
    ObjectInfo = "";
    Operation = "PutInstance";
    ParameterInfo = "";
    ProviderName = "ExtnProv";
    StatusCode = 2147749889;
    At C:\Users\INAFN\Documents\codeBin\IsoGenerator.ps1:25 char:1
    + New-CMTaskSequenceMedia -BootableMediaOption -MediaPath c:\temp\ISOName.iso -BootIm ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (Microsoft.Confi...nceMediaCommand:NewTaskSequenceMediaCommand) [New-CMTaskSequenceMedia], WqlQueryException
    + FullyQualifiedErrorId : UnhandledExeception,Microsoft.ConfigurationManagement.Cmdlets.Osd.Commands.NewTaskSequenceMediaCommand
    PS CM1:\>

Maybe you are looking for

  • Set Microsoft Outlook as the default mail client.

    Every time I am trying to sync my calendar, notes and mail account with my iPhone through iTunes I keep getting a notifactions saying 'Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run

  • Parallels + Bootcamp = Problem/ Please Help me

    Hey, I am using an external Firewire drive, because my internal is damaged. So I was not able to install windows xp through bootcamp (Bootable device Error). So what I did is, I made a Bootcamp Partition and I set up Parallels to install Windows on t

  • How to read a file as an input stream after it's posted in an HTML form ?

    Hello, I want to read client file after it's posted in an HTML form. But, I don't want to upload it to filesystem or database. I want to read posted file as an input stream. How can I do that ? thanks in advance...

  • How can I create a NetBoot image using command line tools?

    Is it possible to create a NetBoot image entirely using command line tools? (That is, without using the SystemImageUtility) If so, are there reasonable instructions posted somewhere? I don't believe I can use SystemImageUtility with my current setup,

  • Reader 7 commenting turns off with save

    Acrobat 9 extended. Having set commenting enabled for the reader (v7 & 9), the recipient can create comments and save them. On reopening the document containing the comments the comments are there but the commenting rights have now disappeared and no