Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access violation runtime error related to TStringGrid

Status
Not open for further replies.

michielv

Programmer
Aug 16, 2006
4
NL
Hi,

I'm developing a program with Borland C++ Builder Personal version 6.0. The program does run but sometimes it suddenly crashes due to an access violation error. I can use the debugger to inspect the problem, but it wants to take me to a source file called ‘system.pas’ which I apparently don’t have (because the debugger tells me it can’t find it). Therefore I can’t trace the problem back to my own code. However, I can inspect the problem a bit in the debugger using the call stack. This brings me to the idea that it may have something to do with a TStringGrid object I’m using. If I remove this object the problem indeed seems to be gone, but obviously I can’t use the good things of TStringGrid either then. Does anybody know a solution to this problem? Maybe I could also try with an alternative of TStringGrid if something like that exists (I don’t really know about such a thing).

Thanks very much for your help,

Michiel.
 
Access voilations are real pain to find and fix. The reason is there are so many possible causes. Without seeing some code, I suspect that problem may be related to not clearing something out, maybe not destroying something.

See if any of these articles might help: . Note that some of these are for subscribers only but there is still a lot of good info in the public files.

James P. Cottingham
-----------------------------------------
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Thanks James,

I'll go and read the articles in that link. I'll let you know when I found a solution.

Michiel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top