Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...These forums are an excellent source and example of the way people can help each other..."

Geography

Where in the world do Tek-Tips members come from?

Access Violation on close of application

DeniseBDA (Programmer)
16 Jul 12 9:41
Hi there,
I'm using Delphi XE2 update 4 hotfix 1. We keep getting "access violation in module 'appname.exe' at 00052C21. Access violation at address 00452C21 in module 'appname.exe'. Read of address 00000000" It occurs when the app is closing. It doesn't happen every single time. We seem to believe it has something to do with the CXGrid. Could someone shed a little light on this. Even some tips to try to decifer this msg. I'm afraid to admit that the call stack and I don't seem to jive but I'm pulling my hair out.
thanks for any and all help
Denise
whosrdaddy (Vendor)
16 Jul 12 13:20
read of address 00000 means that you are accessing a null (nil) pointer, this could be a an object that has already been freed (or never has been created).
Without seeing code it's hard to guess where the problem lies. Try to step with the debugger and simulate the problem...

/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!

DjangMan (Programmer)
16 Jul 12 13:26
Download and install MADExcept. IIRC, you can use it to debug your application for free as long as you disable the support before you publish your application. When you get an error like this is can sometimes point you to the exact line of code causing the problem.

http://madshi.net/madExceptDescription.htm
DeniseBDA (Programmer)
17 Jul 12 8:13
Thanks for the advice. Stepping through doesn't help me. I go all the way to the System unit and of course once I step through I don't get the AV. Just running it causes an error after opening and closing the app a few times. I do notice in the event log that not all the modules are unloaded or there are multiple instances of the dll's loaded. Should all dll's loaded have an unload? In the meantime I'll try the MadExcept.
DeniseBDA (Programmer)
17 Jul 12 11:00
Looking into it a little more I noticed in the even log that the access violation occurrs just before it tries to load an instance of the ole32.dll. When the app runs smoothly it loads and unloads the oil32.dll. Is this just a fluke?

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close