🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.deployment
3 messages
3 total messages Started by Harsha Rao Fri, 27 Aug 2004 14:57
Access Violation Error when calling .exe using "spawnl" command
#335
Author: Harsha Rao
Date: Fri, 27 Aug 2004 14:57
13 lines
1312 bytes
I am having a C++ Builder 6 program that calls diffent exe's from the main form. If i call these exe's on any button press, I get a OS Access Violation.
I am using the following line to call the exe.
spawnl(P_NOWAIT,"Sample.exe",NULL);

I DO NOT want to use system command since it opens up a command window.

Strangely the spawnl command works when i use menu items on the same form and call them on menu press and DOES NOT WORK when  using any events on the form.

Please Help
Harsha
Texas Instruments
harsha@ti.com
Re: Access Violation Error when calling .exe using "spawnl" command
#336
Author: Thomas Maeder [TeamB]
Date: Fri, 27 Aug 2004 16:28
5 lines
1246 bytes
Please direct your browser at http://info.borland.com/newsgroups/ and read the
newsgroup guidelines. One of them asks us not to post the same question to
different newsgroups, but to pick the most appropriate one and just post
there. Thanks!
Re: Access Violation Error when calling .exe using "spawnl" command
#338
Author: Kelly Domalik
Date: Tue, 31 Aug 2004 04:44
23 lines
1640 bytes
Use the ShellExecute Windows API function...it always works.


"Harsha Rao" <harsha@ti.com> wrote in message
news:412f4bcb$1@newsgroups.borland.com...
>
> I am having a C++ Builder 6 program that calls diffent exe's from the main
form. If i call these exe's on any button press, I get a OS Access
Violation.
> I am using the following line to call the exe.
> spawnl(P_NOWAIT,"Sample.exe",NULL);
>
> I DO NOT want to use system command since it opens up a command window.
>
> Strangely the spawnl command works when i use menu items on the same form
and call them on menu press and DOES NOT WORK when  using any events on the
form.
>
> Please Help
> Harsha
> Texas Instruments
> harsha@ti.com
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads