About to Close Prim (Ruby)
Posted: Sun Apr 22, 2018 2:31 pm
Hi Guys
I am trying to use the 'About to Close' prim in conjunction with Ruby in order to auto save some data to file as the program shuts down:
I've set the delay to 2 seconds just for demo purposes although in reality it would be a fraction of a second.
When I close the 'schematic' window it works as expected with the delay,
when I close the main Flowstone window it shuts down instantly without delay,
when exported to .exe it shuts down instantly without delay . . . although the manual says it works in exported exes & plugins.
Am I missing something simple (highly likely ) or does the prim not work as it should?
Alternatively is there another way to do this?
Any help much appreciated
Thanks in advance
Dave
I am trying to use the 'About to Close' prim in conjunction with Ruby in order to auto save some data to file as the program shuts down:
I've set the delay to 2 seconds just for demo purposes although in reality it would be a fraction of a second.
When I close the 'schematic' window it works as expected with the delay,
when I close the main Flowstone window it shuts down instantly without delay,
when exported to .exe it shuts down instantly without delay . . . although the manual says it works in exported exes & plugins.
Am I missing something simple (highly likely ) or does the prim not work as it should?
Alternatively is there another way to do this?
Any help much appreciated
Thanks in advance
Dave