From: Martin Å. <mar...@un...> - 2013-05-03 08:31:54
|
>>>> I have a wpf application, and when exiting I always get a debug output: >>>> A first chance exception of type 'System.NullReferenceException' >>>> occurred in FirebirdSql.Data.FirebirdClient.dll >>>> Firebird 2.5, Firebird Client 3.0.2.0, Runtime v4.0.30319 I havn?t >>>> been able to track down a cause for this. Any clues? >> >>> Did you try to running it under a debugger with >>> FirebirdSql.Data.FirebirdClient.pdb in the same directory of the DLL? It might help you trace the origin of the null reference. >> >> >> I have the pdb-file placed in [program files]\FirebirdClient\ directory which is the same directory where I reference the dll. >> I never paid attention to symbol loading at debugging so I cant really say if it is loaded or not (I think not). >> Tried to point it out in VS and load it explicitly and disable the "Just my code" debugger option but no difference. >Place de pdb in the same directory of your .exe. >Anyway, did you see the call stack as Jiri said? No call stack available, but I solved it by exiting a bit more gracefully, implementing IDisposable in the object holding the connection and within it closing and disposing the connection. So I am fine for now. /Martin |