Re: [Pharo-users] Stale SQLite connection

2020-03-16 Thread Jeff Gray
Hey Vince! Yes it's me. Hope you're well. Those meetings were fun. Shame they petered out, though I now live much further away so I wouldn't be attending anymore. Yep - that lazy eval looks very similar to my code. I think that in general operation, my application would not normally have a proble

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 from

Re: [Pharo-users] Stale SQLite connection

2020-03-12 Thread Vince Refiti
Hi Jeff Is this you from Brisbane? Did you used to come to the meetups at the State Library? Well anyway, I used to do something similar to what you describe, by lazy initializing the connection and also checking to see if it is open. dbConnection dbConnection ifNil: [ dbConenction :=