Article View: borland.public.cppbuilder.deployment
Article #335Access Violation Error when calling .exe using "spawnl" command
From: Harsha Rao
Date: Fri, 27 Aug 2004 14:57
Date: Fri, 27 Aug 2004 14:57
13 lines
1312 bytes
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
Technical Details
Message-ID:
<412f4bcb$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f8e54,de1dac67b3658e3b,start X-Google-Attributes: gidf8e54,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Harsha Rao" <harsha@ti.com> Sender: "Harsha Rao" <harsha@ti.com> Reply-To: "Harsha Rao" <harsha@ti.com> Subject: Access Violation Error when calling .exe using "spawnl" command Newsgroups: borland.public.cppbuilder.deployment X-User-Info: 192.91.75.29 NNTP-Posting-Host: 207.105.83.66 Message-ID: <412f4bcb$1@newsgroups.borland.com> Date: 27 Aug 2004 07:57:15 -0700 X-Trace: newsgroups.borland.com 1093618635 207.105.83.66 (27 Aug 2004 07:57:15 -0700) Lines: 14 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail