cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

JMP Knowledge Base

Choose Language Hide Translation Bar
Closing a custom window with an On Close() argument can cause JMP® to crash

In JMP, closing a custom window with an <<On Close() argument can cause JMP to crash.  The problem occurs on Windows operating systems.

Example - the following code can cause the crash:

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );

win = New Window( "Test",
    <<On Close( Close( dt, No Save ) ),
    dist = Distribution( Continuous Distribution( Column( :height ), Horizontal Layout( 1 ) ) )
);

 

To work around the problem, use the Schedule() function to schedule the data-table close.

Example - use this code instead of the code above:

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );

cleanup = Function( {},
	Eval( Expr( sch << Close() ) );
	Close( dt, No Save );
);

win = New Window( "Test",
	<<On Close( sch = Schedule( 0, cleanup() ) ),
	dist = Distribution( Continuous Distribution( Column( :height ), Horizontal Layout( 1 ) ) )
);


 
 

 

 

[Previously JMP Note 63410]

Details
Operating System
Windows
Reported Version
14.2
Fixed Version
14.3
Products JMP JMP Pro

Recommended Articles