Solved

EAcessViolation Error

Posted on 1997-08-16
4
259 Views
Last Modified: 2010-04-03
I'am a italian beginner of delphi 2.0 and I have a problem:

Executing this command:
   WinExec('ARJ.EXE x -va -r -y C:\*.ARJ C:\PROVA',                                                                                              SW_MINIMIZE);
or this command:
   ShellExecute(0,'Open','ARJ.EXE','x -va -r -y :\*.arj c:\prova','',                                                                                                       SW_MINIMIZE);

the ARJ is executed correctly but appeat this error message:

Project Prova.exe raised exception class EAccessViolation with message
'Access violation at address 455C3A44. Read of address 455C3A44'. Process
stopped. Use Step or Run to continue.

Changing the parameters of ARJ the address violated changing.

What is the problem?
Can you explain a possible solution, please?
thank you.
Gianmario Da Vià
nodil@hotmail.com
0
Comment
Question by:nodil
4 Comments
 

Author Comment

by:nodil
ID: 1341622
Edited text of question
0
 

Expert Comment

by:chrb
ID: 1341623
What is comming after this command ?
0
 
LVL 3

Expert Comment

by:sperling
ID: 1341624
Please post some more code, there's nothing wrong with the snippets you've posted.

Regards,

Erik.
0
 
LVL 5

Accepted Solution

by:
ronit051397 earned 100 total points
ID: 1341625
If you process the arj command, and the next lines in your code refer to these files that were opened and/or to the compressed files then sometimes you have a problem becuase your delphi program continues to run while the arj process hasn't finished yet. Therefore you have to suspend the delphi program from stepping to the next code line until the arj process is finished.
For example if the next line is deleting *.arj then you'll get an error becuase these files are locked until all opening is done.
To suspend the delphi program create some loop, say with the
application.processmessages method, or use a timer.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question