You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ferhat BINGOL <s0...@student.dtu.dk> on 2003/06/13 20:03:34 UTC

[users@httpd] Untrapped exception :Access violation at address

Hi,

I am writing my question to this group cause I beleive that it is a CONF question for Apache.

I use Apache 1.3 with PHP 4.2.3.under W2000pro

I have a Delphi coded/compiled EXE file(which is a command line tool). EXE file runs with parameters and pump some data to MySQL database.

When I run the EXE file from MS-DOS prompt it works fine. So I wrote a PHP code to run this EXE file with SYSTEM or PASSTHRU command. But when I run the script from web server I got this error

Untrapped exception :Access violation at address 0049403A in module 'run.exe'. Read of address FFFFFFFF

So, I tried to run the PHP script from command line. Again it worked very well and did te job. 

Then I thought that this might be Apache server problem to send the parameters to the EXE file. 

Am I right about that this might be a Apache CONF problem??

TIA


Re: [users@httpd] Untrapped exception :Access violation at address

Posted by Robert Andersson <ro...@profundis.nu>.
(plain text, please ;-)

Ferhat BINGOL wrote:
> When I run the EXE file from MS-DOS prompt it works fine.
> So I wrote a PHP code to run this EXE file with SYSTEM or
> PASSTHRU command. But when I run the script from web
> server I got this error
>
> Untrapped exception :Access violation at address 0049403A
> in module 'run.exe'. Read of address FFFFFFFF

That must be a bug in your program, if 'run.exe' is your program. However,
as you say it is Delphi program, I would think that it is must rather be
some bug in Delphi's compiler that is triggered by the different environment
it has when executed from PHP as part of a HTTP request.

> Then I thought that this might be Apache server problem to send
> the parameters to the EXE file.

What do you mean here? Apache isn't invoking your program, PHP is. And, what
do you think the problem is with the parameters passed?

> Am I right about that this might be a Apache CONF problem??

No, it's a problem with your program and/or Delphi, or remotely PHP. I
suggest you start by making a Delphi executable that does about nothing, to
make sure that works. Than take your program and one way or another strip
out most stuff and see if it works, and then gradually add more code until
you see what piece of code cause it to crash. Then you're in much better
position to determine if it is a bug in your code, Delphi, PHP or Apache
that is at fault.


Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org