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%3EEliminaci%C3%B3n%20de%20cuadros%20de%20visualizaci%C3%B3n%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-34497%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHola%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Esiguiendo%20las%20sugerencias%20de%20txnelson%20de%20una%20publicaci%C3%B3n%20anterior%2C%20estoy%20creando%20algunos%20cuadros%20de%20visualizaci%C3%B3n%20sin%20mostrarlos%20en%20una%20ventana%2C%20para%20extraer%20la%20informaci%C3%B3n%20que%20necesito%20sin%20visualizaciones%20para%20el%20usuario.Sin%20embargo%2C%20no%20estoy%20seguro%20de%20si%20necesito%20eliminar%20estos%20cuadros%20de%20visualizaci%C3%B3n%20expl%C3%ADcitamente%20o%20si%20alguna%20recolecci%C3%B3n%20de%20basura%20est%C3%A1%20activa%20para%20eliminarlos%20en%20alg%C3%BAn%20momento.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESi%20necesito%20eliminarlos%2C%20%C2%BFboxName%26lt%3B%3CDELETE%20box%3D%22%22%20es%3D%22%22%20la%3D%22%22%20forma%3D%22%22%20correcta%3D%22%22%3E%3C%2FDELETE%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Egracias%3C%2FP%3E%3CP%3Emateo%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%20Eliminar%20cuadros%20de%20visualizaci%C3%B3n%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-34500%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Evlb%20se%20puede%20eliminar%2C%20pero%20es%20un%20objeto%20muy%20peque%C3%B1o%20por%20s%C3%AD%20mismo.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Evlb%26lt%3B%3CELIMINAR%3E%3C%2FELIMINAR%3E%3CLINGO-SUB%20id%3D%22lingo-sub-34499%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Eliminar%20cuadros%20de%20visualizaci%C3%B3n%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%3EGracias.%20%C2%BFPodr%C3%ADa%20explicar%20qu%C3%A9%20hacer%20con%20vlb%20en%20su%20ejemplo%3F%20%C2%BFEste%20cuadro%20de%20visualizaci%C3%B3n%20tambi%C3%A9n%20ocupa%20memoria%3F%20Supongo%20que%20se%20cierra%20autom%C3%A1ticamente%20con%20el%20mensaje%20%26lt%3B%26lt%3B%20cerrar%20ventana%2C%20pero%20no%20est%C3%A1%20muy%20claro%20c%C3%B3mo%20sucede%20esto.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%C2%BFQu%C3%A9%20pasa%20con%20un%20cuadro%20de%20lista%20V%20vac%C3%ADo%20creado%20pero%20que%20no%20se%20muestra%20en%20ninguna%20ventana%2C%20como%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3Evlb%3DCuadro%20de%20lista%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%3E%C2%BFDeber%C3%ADa%20eliminarse%3F%20%C2%BFc%C3%B3mo%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%20Eliminar%20cuadros%20de%20visualizaci%C3%B3n%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-34498%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECualquier%20objeto%20creado%20ocupa%20memoria%2C%20sea%20visible%20o%20no.Por%20lo%20tanto%2C%20es%20aconsejable%20limpiar%20los%20objetos%20creados.Esto%20es%20lo%20que%20hago%20para%20las%20plataformas%20visibles%20e%20invisibles.%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