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%3EEliminazione%20delle%20caselle%20di%20visualizzazione%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-34497%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECiao%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eseguendo%20i%20suggerimenti%20di%20txnelson%20in%20un%20post%20precedente%2C%20sto%20creando%20alcune%20finestre%20di%20visualizzazione%20senza%20mostrarle%20in%20una%20finestra%2C%20in%20modo%20da%20estrarre%20le%20informazioni%20che%20mi%20servono%20senza%20visualizzazioni%20per%20l'utente.Non%20sono%20sicuro%2C%20tuttavia%2C%20se%20sia%20necessario%20eliminare%20esplicitamente%20queste%20caselle%20di%20visualizzazione%20o%20se%20sia%20attiva%20qualche%20garbage%20collection%20per%20eliminarle%20in%20un%20determinato%20momento.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESe%20devo%20eliminarli%2C%20boxName%26lt%3B%3CDELETE%20box%3D%22%22%20%C3%A8%3D%22%22%20il%3D%22%22%20modo%3D%22%22%20corretto%3D%22%22%3E%3C%2FDELETE%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGrazie%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%3ERe%3A%20Eliminazione%20delle%20caselle%20di%20visualizzazione%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-34500%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Evlb%20pu%C3%B2%20essere%20eliminato%2C%20ma%20di%20per%20s%C3%A9%20%C3%A8%20un%20oggetto%20molto%20piccolo.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Evlb%26lt%3B%3CCANCELLA%3E%3C%2FCANCELLA%3E%3CLINGO-SUB%20id%3D%22lingo-sub-34499%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Eliminazione%20delle%20caselle%20di%20visualizzazione%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%3EGrazie.%20Potresti%20spiegare%20cosa%20fare%20con%20vlb%20nel%20tuo%20esempio%3F%20anche%20questa%20casella%20di%20visualizzazione%20occupa%20memoria%3F%20Suppongo%20che%20venga%20chiusa%20automaticamente%20con%20il%20messaggio%20%26lt%3B%26lt%3B%20chiudi%20finestra%2C%20ma%20non%20%C3%A8%20molto%20chiaro%20come%20ci%C3%B2%20avvenga.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EChe%20ne%20dici%20di%20una%20casella%20di%20riepilogo%20V%20vuota%20creata%20ma%20non%20mostrata%20in%20nessuna%20finestra%2C%20come%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3Evlb%3DCasella%20di%20riepilogo%20V()%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%3EDovrebbe%20essere%20cancellato%3F%20Come%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%3ERe%3A%20Eliminazione%20delle%20caselle%20di%20visualizzazione%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-34498%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EQualsiasi%20oggetto%20creato%20occupa%20memoria%2C%20che%20sia%20visibile%20o%20meno.Quindi%20%C3%A8%20saggio%20ripulire%20tutti%20gli%20oggetti%20creati.Ecco%20cosa%20faccio%20sia%20per%20le%20piattaforme%20visibili%20che%20per%20quelle%20invisibili.%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