Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / General PostgreSQL Topics / April 2006

Tip: Looking for answers? Try searching our database.

Executing interactive application from C function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pegasus86 - 09 Apr 2006 10:37 GMT
Hi everyone.

I'm working in Windows with PostgreSQL, and I have created a simple C
function in a DLL, which contains only the line:

           system("C:/windows/notepad.exe")

I have successfully created a function in my db, and linked it to the
DLL function.

However, when I execute, in pgAdminIII and psql (and other clients):

    SELECT <functionname>()

the program freezes!

The "Task Manager" shows that Windows is effectively executing
"notepad.exe" for user "postgres": if I shut down Notepad with "Task
Manager", the client works fine.

It seems that PostgreSQL for Windows locks the interaction with the
user... because launching non-interactive programs works well.

Any ideas?
Thanks
P.86
Pegasus86 - 09 Apr 2006 23:47 GMT
Problem solved.

Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.