Jonathan Blitz wrote: > Now I am having runtime error when compiling them using VS 2005. > > First-chance exception at 0x78144d3a (msvcr80.dll) in TestLibpqxx.exe: > 0xC0000005: Access violation reading location 0x001bb000. > A first chance exception of type 'System.AccessViolationException' occurred > in TestLibpqxx.exe > An unhandled exception of type 'System.AccessViolationException' occurred in > TestLibpqxx.exe > > Additional information: Attempted to read or write protected memory. This is > often an indication that other memory is corrupt. > > Happens with any of the test programs if I compile them in VS2005 but not > when I compile them using the way described in the Install file.
I understand that you're compiling a test program with a VS2005 IDE project? It is very important that the compiler and linker settings of your IDE project match those of libpqxx, otherwise you are going to see these kinds of crashes. You can check which compiler settings libpqxx uses in debug / release mode (yes, these settings are different) by reading libpqxx.mak. Cheers, Bart _______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
