dbTalk Databases Forums  

Executing interactive application from C function

comp.databases.postgresql.questions comp.databases.postgresql.questions


Discuss Executing interactive application from C function in the comp.databases.postgresql.questions forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Pegasus86
 
Posts: n/a

Default Executing interactive application from C function - 04-09-2006 , 04:37 AM






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

Reply With Quote
  #2  
Old   
Pegasus86
 
Posts: n/a

Default Re: Executing interactive application from C function - 04-09-2006 , 05:47 PM






Problem solved.

Thanks.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.