[DUG] Shellexecute issues in Delphi - call hangs until the program it starts finishes.
Arjan Noordhoek
arjan.noordhoek at gmail.com
Fri Dec 12 14:17:57 NZDT 2008
Hi Phil,
Just a guess. I haven't used shellexecute my self but could it be your
program uses showmodal and the other app is a mdi application?
Cheers
Arjan Noordhoek
2008/12/12 Phil Scadden <p.scadden at gns.cri.nz>
> 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.
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
> unsubscribe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20081212/62440261/attachment.html
More information about the Delphi
mailing list