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 <[email protected]> > 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: [email protected] > Admin: http://delphi.org.nz/mailman/listinfo/delphi > Unsubscribe: send an email to [email protected] with Subject: > unsubscribe >
_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: [email protected] Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [email protected] with Subject: unsubscribe
