[DUG] Shellexecute issues in Delphi - call hangs until the program it starts finishes.
Phil Scadden
p.scadden at gns.cri.nz
Fri Dec 12 14:01:18 NZDT 2008
Having some issues with shellexecute in a program.
Basic code is
If (blah) then
Shellexecute(application.handle,'open', program1,params,nil,SW_SHOWNORMAL)
else
Shellexecute(application.handle,'open', file1,nil,nil,SW_SHOWNORMAL);
file1 is associated with a program, (not written by me) and works find -
it opens the correct program and continues fine.
program1 however is written by me and what happens that program1 opens
just fine but the caller hangs on the shellexecute until program1
terminates. Eventually the operating system just kills the caller as a
hung program.
Obviously shellexecute is waiting for something??? What is program1
failing to do??
--
Phil Scadden, GNS Science Ltd 764 Cumberland St, Private Bag 1930,
Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.
More information about the Delphi
mailing list