Hi Phil,<div><br></div><div>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?</div><div><br></div><div>Cheers</div><div><br></div><div>
Arjan Noordhoek</div><div><br><br><div class="gmail_quote">2008/12/12 Phil Scadden <span dir="ltr"><<a href="mailto:p.scadden@gns.cri.nz">p.scadden@gns.cri.nz</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Having some issues with shellexecute in a program.<br>
<br>
Basic code is<br>
If (blah) then<br>
Shellexecute(application.handle,'open', program1,params,nil,SW_SHOWNORMAL)<br>
else<br>
Shellexecute(application.handle,'open', file1,nil,nil,SW_SHOWNORMAL);<br>
<br>
file1 is associated with a program, (not written by me) and works find -<br>
it opens the correct program and continues fine.<br>
<br>
program1 however is written by me and what happens that program1 opens<br>
just fine but the caller hangs on the shellexecute until program1<br>
terminates. Eventually the operating system just kills the caller as a<br>
hung program.<br>
<br>
Obviously shellexecute is waiting for something??? What is program1<br>
failing to do??<br>
<br>
<br>
--<br>
Phil Scadden, GNS Science Ltd 764 Cumberland St, Private Bag 1930,<br>
Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232<br>
<br>
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.<br>
<br>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe<br>
</blockquote></div><br></div>