On 5/26/06, Michael B. Hansen <[EMAIL PROTECTED]> wrote:
This all works very well for some time - then suddenly after 250 - 10000 calls to my function sqlite3_prepare returns "Object reference not set to an instance of an object" - which is a .NET exception I interpretate as a Null-pointer-exception / malloc failure.
I can't speak to your specific issue, but I've written a .NET wrapper for a C++ project and that error is more than likely the result of the garbage collector collecting a reference that the .NET assembly assumes is still there. I can't tell you how many times this has happened to me. Particularly, delegates can be tricky. If you don't put all your delegates into some container like and ArrayList, eventually the GC comes along and deletes your delegates. Then, poof, your application blows up because the delegate you were using as a callback is gone. I heavily suspect that the Finisar.SQLite wrapper is the issue, not your code. -- Joel Lucsy "The dinosaurs became extinct because they didn't have a space program." -- Larry Niven

