cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

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