cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-34497%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EAnzeigeboxen%20l%C3%B6schen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-34497%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDen%20Vorschl%C3%A4gen%20von%20txnelson%20aus%20einem%20fr%C3%BCheren%20Beitrag%20folgend%2C%20erstelle%20ich%20einige%20Anzeigefelder%2C%20ohne%20sie%20in%20einem%20Fenster%20anzuzeigen%2C%20um%20die%20ben%C3%B6tigten%20Informationen%20ohne%20Visualisierungen%20f%C3%BCr%20den%20Benutzer%20zu%20extrahieren.Ich%20bin%20mir%20jedoch%20nicht%20sicher%2C%20ob%20ich%20diese%20Anzeigefelder%20explizit%20l%C3%B6schen%20muss%20oder%20ob%20eine%20Garbage%20Collection%20aktiv%20ist%2C%20um%20sie%20irgendwann%20zu%20l%C3%B6schen.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWenn%20ich%20sie%20l%C3%B6schen%20muss%2C%20ist%20boxName%26lt%3B%3CDELETE%20box%3D%22%22%20der%3D%22%22%20richtige%3D%22%22%20weg%3D%22%22%3E%3C%2FDELETE%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDanke%3C%2FP%3E%3CP%3EMatteo%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-34500%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Anzeigefelder%20l%C3%B6schen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-34500%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Evlb%20kann%20gel%C3%B6scht%20werden%2C%20ist%20aber%20f%C3%BCr%20sich%20genommen%20ein%20sehr%20kleines%20Objekt.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Evlb%26lt%3B%3CDELETE%3E%3C%2FDELETE%3E%3CLINGO-SUB%20id%3D%22lingo-sub-34499%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Anzeigefelder%20l%C3%B6schen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-34499%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3C%2FLINGO-BODY%3E%3C%2FP%3E%3CP%3EDanke.%20K%C3%B6nnten%20Sie%20bitte%20erkl%C3%A4ren%2C%20was%20in%20Ihrem%20Beispiel%20mit%20vlb%20zu%20tun%20ist%3F%20Verbraucht%20dieses%20Anzeigefeld%20auch%20Speicher%3F%20Ich%20nehme%20an%2C%20dass%20es%20automatisch%20mit%20der%20Meldung%20%E2%80%9E%26lt%3B%26lt%3B%20Fenster%20schlie%C3%9Fen%E2%80%9C%20geschlossen%20wird%2C%20aber%20es%20ist%20nicht%20ganz%20klar%2C%20wie%20das%20passiert.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWas%20ist%20mit%20einem%20leeren%20V-Listenfeld%2C%20das%20erstellt%2C%20aber%20in%20keinem%20Fenster%20angezeigt%20wird%2C%20wie%20zum%20Beispiel%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3Evlb%3DV%20List%20Box()%3B%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESollte%20es%20gel%C3%B6scht%20werden%3F%20Wie%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-34498%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Anzeigefelder%20l%C3%B6schen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-34498%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJedes%20erstellte%20Objekt%20beansprucht%20Speicher%2C%20unabh%C3%A4ngig%20davon%2C%20ob%20es%20sichtbar%20ist%20oder%20nicht.Daher%20ist%20es%20ratsam%2C%20alle%20erstellten%20Objekte%20zu%20bereinigen.Folgendes%20mache%20ich%20sowohl%20f%C3%BCr%20sichtbare%20als%20auch%20f%C3%BCr%20unsichtbare%20Plattformen.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2Fbig%20class.jmp%22%20%2Cprivate)%3B%0Avlb%20%3D%20V%20List%20Box(%20biv%20%3D%20dt%20%26lt%3B%26lt%3B%20bivariate(%20x(%20%3Aheight%20)%2C%20y(%20%3Aweight%20)%20)%20)%3B%0A%0Abiv%20%26lt%3B%26lt%3B%20close%20window%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
matteo_patelmo
Level IV

Deleting display boxes

Hello,

 

following suggestions from txnelson from a previous post, I'm creating a few display boxes without showing them in a window, in order to extract the informations I need with not visualizations for the user.  I am not sure, though, if I need to delete these display boxes explicitly or if some garbage collection is active to delete them at some time. 

 

If I do need to delete them, is boxName<<delete box  the correct way? 

 

thanks

Matteo

1 ACCEPTED SOLUTION

Accepted Solutions
matteo_patelmo
Level IV

Re: Deleting display boxes

Thanks. Could you please explain what to do with vlb in your example? is this display box taking up memory as well? I suppose it gets closed automatically with the << close window message, but it's not very clear how this happens.

 

What about an empty V List Box created but not shown in any window, like:

 

vlb=V List Box();

 

?

 

Should it be deleted? how?

 

 

View solution in original post

3 REPLIES 3
txnelson
Super User

Re: Deleting display boxes

Any object created takes up memory, if it is visible or not.  So it is wise to clean up any created objects.  Here is what I do for both visible and invisible platforms.

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" ,private);
vlb = V List Box( biv = dt << bivariate( x( :height ), y( :weight ) ) );

biv << close window;
Jim
matteo_patelmo
Level IV

Re: Deleting display boxes

Thanks. Could you please explain what to do with vlb in your example? is this display box taking up memory as well? I suppose it gets closed automatically with the << close window message, but it's not very clear how this happens.

 

What about an empty V List Box created but not shown in any window, like:

 

vlb=V List Box();

 

?

 

Should it be deleted? how?

 

 

txnelson
Super User

Re: Deleting display boxes

vlb can be deleted, but it is a very small object by its self.

 

vlb<<delete;

Jim

Recommended Articles