TOPIC: Exit from Suneido
#261
Exit from Suneido 4 Years, 1 Month ago
Hi, I have to exit from Suneido when some conditions aren't verified in my application. I wouldn't like to lose the data entered before the exit function call.
Wich one I should have to use between the Exit() and the Shutdown() functions?
 
 
Mauro
 
#262
Re:Exit from Suneido 4 Years, 1 Month ago
If you are using persistent sets or want to shut down the server, then use Shutdown (which calls Exit). Otherwise it should be safe to just use Exit (but don't pass true as the status). You can look at the definition of Shutdown in stdlib.
 
 
andrew
 
#263
Re:Exit from Suneido 4 Years, 1 Month ago
Thank you. ;)
 
 
Mauro
 
#372
Re:Exit from Suneido 3 Years, 11 Months ago
Hi, I have discovered that Suneido doesn't exit immediately when it runs in a Shutdown() function. Instead it continues to read other instructions after the Shutdown()... Why?

P.S.: I'm using persistent sets...

Post edited by: Mauro, at: 2006/09/23 22:33
 
 
Mauro
 
#376
Re:Exit from Suneido 3 Years, 11 Months ago
If you want to terminate immediately you can call Exit(true) but if you want to shut down properly then you have to allow things to complete after the call to Shutdown. This is partly because of Windows being event driven.
 
 
andrew
 
#380
Re:Exit from Suneido 3 Years, 11 Months ago
Ok, thanks. I have resolved doing a 'return false' immediately after a Shutdown()...
 
 
Mauro
 
#386
Re:Exit from Suneido 3 Years, 11 Months ago
It is the same with dialogs - you have to return after doing .Window.Result
 
 
andrew