> How do you run the program, in console or by double clicking on > executable. Try the second. Does the console window apear on the screen? Aha! This tip has led to the solution. I had been running the program from an emacs shell buffer. If I run it from the Windows console or by double-clicking the executable, a dialog box pops up with this error message: "The application has failed to start because LIBPQ.dll was not found. Re-installing the application may fix this problem." At run-time, the system apparently cannot find libpq.dll and is aborting immediately. The reason is that the directory containing libpq.dll was not in my DLL search path. I added C:\Program Files\PostgreSQL\8.3\bin to my PATH environment variable, and now the program works as expected. Note that adding C:\Program Files\PostgreSQL\8.3\lib to the PATH doesn't completely solve the problem, since bin contains some necessary DLLs that aren't in lib (such as ssleay32.dll). Alternatively, I could have copied the DLLs to C:\Windows\system32 or to the directory containing the executable, but I like the PATH solution better. Thanks, everyone, for your help! -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general