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