Okay this worked from what I can tell. I still get a debug window 3 times that I would like to get rid of if I could but the exception was very helpful in telling me what was missing from the connection data.
I have attached images of the debug windows if anyone has a clue how to get rid of them please let me know. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bart Samwel Sent: Thursday, August 10, 2006 5:23 PM To: DEV Cc: [email protected] Subject: Re: [libpqxx-general] Almost there DEV wrote: > Okay, I am able to compile my app with out any errors my code is currently: > > > > #include "stdafx.h" > > > > #using <mscorlib.dll> > > > > #include <pqxx/pqxx> > > > > using namespace System; > > > > using namespace PGSTD; > > using namespace pqxx; > > > > > > int main() > > { > > connection Conn("dbname=template1"); > > > > return 0; > > } > > > > I have even copied and pasted test001.cxx into my app and I get the same > error: > > > > This application has requested the Runtime to terminate it in an unusual > way. > > Please contact the application's support team for more information. > > > > I have no clue what I am missing. I have the comerr32.dll file and the > krb5_32.dll in the apps directory. Anyone have a clue? Could you try changing main() to something like: int main() { std::cout << "Before start." << std::endl; try { connection Conn("dbname=template1"); } catch(std::exception& e) { std::cout << "Exception: " << e.what() << std::endl; } return 0; } Then run it, and see which parts are printed. (I'm interested to see if it gets to the beginning of main() at all, and if so, I'm interested to see if an exception is thrown. I seem to remember that the error message that you're getting corresponds to an uncaught exception.) Cheers, Bart _______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
<<attachment: error.jpg>>
_______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
