Am Mon, 26 Nov 2007 08:36:47 -0500 (EST) schrieb Clay Dowling: > > Andreas Volz wrote: > > Am Sun, 25 Nov 2007 12:11:50 +0100 schrieb Andreas Volz: > > > >> Hello, > >> > >> I used this minimal example code to test my sqlite connection. This > >> works without problems. But now I tried to move the 'db' variable > >> into the private member section of my 'Cache' class to access it > >> from various member functions. That's all. I would assume that > >> this makes no difference. But my app crash at sqlite3_open() > > > > Seems as it was a strange memory bug here. Forget my question. > > Andreas, > > While there might be a strange memory bug going on, the bigger issue > is that if you have a db member of the Cache class, you're declaring > a local db variable that's masking the member. That could be leading > to unexpected results later on if you're expecting to use it.
This was only example code. I commented that out in if I use it as member variable. But I found the bug. It was because of wrong initialization of a global variable and crashed because of side effects. regards Andreas ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------