sorry, it is also my idea :D I recently written a new light db interface for firebird, to simplify queries and auto commit transactions (context)
with pool.GetConnection.newContext do <- start transaction Execute(newCommand('DELETE FROM COUNTRY WHERE COUNTRY = ?'), [1]); <- commit/rollback transaction I also remember MS DirectShow SDK (to write codecs) use an object allocated in the stack to syncronyse critical sections, it look like our trick with the interface 2008/7/31 Boian Mitov <[EMAIL PROTECTED]> > BTW: As it was discussed a while ago this does not work so well with > Lazarus due to some "optimizations" they do with when a reference is > decremented. With some tricks however it seems that we are on our way to get > it to work under Lazarus as well. > > With best regards, > Boian Mitov > > -------------------------------------------------------------------- > Mitov Software > http://www.mitov.com > -------------------------------------------------------------------- > > > > ----- Original Message ----- > *From:* Boian Mitov <[EMAIL PROTECTED]> > *To:* FPC developers' list <fpc-devel@lists.freepascal.org> > *Sent:* Thursday, July 31, 2008 5:59 AM > *Subject:* Re: [fpc-devel] Re: Multi threading support > > Hmm... it looks almost one to one copy from our code in Version 4.0 of > our libraries ;-) . Are you one of our customers, or you have simply come > with the same idea as us? > > With best regards, > Boian Mitov > > -------------------------------------------------------------------- > Mitov Software > http://www.mitov.com > -------------------------------------------------------------------- > > > > _______________________________________________ > fpc-devel maillist - fpc-devel@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-devel > >
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel