Re: [Pharo-users] Stale SQLite connection

2020-03-13 Thread Erik Stel
Jeff, You could have a look at SmalltalkImage>>#addToShutDownList: and SmalltalkImage>>#addToStartUpList: to stop/(re)start the connection when image is closed or a snapshot is taken. Add a method #startUp: to handle reconnecting. See for example Clipboard>>#startUp: Cheers, Erik -- Sent

Re: [Pharo-users] Clean up method like #exiting from VAST

2020-03-13 Thread Erik Stel
Vince, You could check SmalltalkImage>>#addToShutDownList: Greetz, Erik -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] Clean up method like #exiting from VAST

2020-03-13 Thread N. Bouraqadi
Hi Vince, In Pharo there is startup list that is used also when quitting (in reverse upon shutdown). To register a class : Smalltalk addToStartUpList: aClass The class startup behavior should go in class method startUp: resumingBoolean The class quit behavior should go in a class method

[Pharo-users] Clean up method like #exiting from VAST

2020-03-13 Thread Vince Refiti
Hello In VAST there is a class-side method #exiting which can be implemented in an application and is called just before the image is shut down. I use it to typically implement clean-up code. Is there something similar in Pharo? If I use aBlock ensure: cleanUpBlock, is the cleanUpBlock