Re: DLL Problem (Access Violation Error)

Daniel Rail <[email protected]> Wed, 6 Aug 2003 07:45:45 -0300
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <[email protected]>
Hi,

At August 6, 2003, 01:30, Shahab-o-ddin Mokhtari wrote:

> I was wrote a dll, but when I call its functions in my
> application, I got Access Violation on address X error !!! :(
> Can anyone help me hoe to currcet this ?!
> If you want, I can send you my dll source, its interface and parts of my application !
 
You can use Delphi to trace into the DLL's code.  Just open the DLL's
project in Delphi, then go in Run|Parameters and set the Host
Application.  Set your breakpoints in your DLL code, for where you
want to start tracing using F7 or F8.  Then Run your application from
within Delphi.  This should help you in finding approximately which
line is causing the trouble.  Usually, an Access Violation error is
caused when you are trying to access an object that is not created,
sometimes you might think the object is created and in fact it is not.

Hope this helps.

-- 
Best regards,
 Daniel Rail
 Senior System Engineer
 ACCRA Group Inc. (www.accra.ca)
 ACCRA Med Software Inc. (www.filopto.com)


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/i7folB/TM
---------------------------------------------------------------------~->

CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/