[V4MD] Director MX 10.1 crashes after debugging a Lingo error on MACOSX - the solution!?

Martin Kloss martin.kloss at gmx.de
Wed Nov 24 14:16:29 CST 2004


At 14:02 24.11.2004, you wrote:
>I found a tricky solution:
>in my startMovie routine I check whether my global DB var (which is 
>created e.g. via gDB = new(xtra"VDataBase") is not VOID then call my 
>stopMovie rountine to shutdown Valentina.

Yes, that's a good way to do it, I would just put the clean up calls
on another handler an call that one:

on startMovie ()
   if NOT(voidP(gDB)) then dbShutdown()
end startMovie

on stopMovie ()
   if NOT(voidP(gDB)) then dbShutdown()
end stopMovie

on dbShutdown ()
   gDB.CloseDatabase()
   gDB = VOID
   ValentinaShutdown()
end dbShutdown

Martin.


Martin Kloss

Skype me 24/7: callto://martinkloss

Like the author? Buy the book:
http://www.amazon.de/exec/obidos/ASIN/3934358322/lingmmugd

Need music? http://www.selling-sound.com

Get your daily dose of Lingo: http://www.lingopark.de




More information about the Valentina mailing list