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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fatal Error Exception Code=C0000005

Status
Not open for further replies.

SMCmtg

Programmer
Mar 27, 2000
90
US
I occasionally crashed and burned with this as the VFP6 message window and can't seem to find anything in the code, rebuilds fine, and I can't get it to happen now?
Fatal Error
Exception Code=C0000005
Called from: dexform.smclabel10.clickline1
Called from: mainpanel.smclabel6.clickline1
. . .I put in the startup an error handler. . .
ON ERROR DO errhand WITH;
ERROR(), MESSAGE(), MESSAGE(1),PROGRAM(),LINENO()
ON ERROR
and in the procedure code. . .
PROCEDURE errhand
PARAMETER merror, mess, mess1, mprog, mlineno
CLEAR
? 'Error number:' +LTRIM(STR(merror))
? 'Error message: ' + mess
? 'Line of code with error: ' + mess1
? 'Line number of error: ' + LTRIM(STR(mlineno))
? 'Program with error: ' + mprog
I can't get it to fall in the pothole since I put this in and it has me dithering. Also, I got a "push/pump" error or something similar to that. Not happy at the time I rebooted and didn't write it down. I couldn't find anything in the "help index" or any of the manuals on the pummp/push error and thought they may be related.
Any comments or thoughts?
[sig][/sig]
 
I used to get this (or a very similar) error after I upgraded from VFP5 to VFP6 and before I installed SP3 to VFP6. It seemed to occur when 2 or more people tried to access data from a table using the same index order or running a SQl on a table when someone else had the table with a cdx order open. After Upgrading to SP3 and doing a total index rebuild (as in deleting the .cdx file and rebuilding the indexes), I have never seen it again. [sig]<p>David W. Grewe<br><a href=mailto:Dave@internationalbid.net>Dave@internationalbid.net</a><br>[/sig]
 
I sometimes get this error in Visual, when using forms as objects, which are members of other objects, and then showing / hiding them.

My documentation says the following:

'Record your recent actions and contact Microsoft Support'

I think that this is an internal FoxPro error, and my error routines will not trap this.

[sig][/sig]
 
&quot;I used to get this (or a very similar) error after I upgraded from VFP5 to VFP6 and before I installed SP3 to VFP6.&quot;. . .I started the project in 3 and graduated to 5 and now 6 and probably 7 shortly. . .Only knowing fox:&quot;What is SP3?&quot;
To Simo:'Record your recent actions and contact Microsoft Support'&quot; How would I contact MS support? Did you get your error in VB or VFP? I just need to wait for it to happen again. . .THX David & Simo for your feedback [sig][/sig]
 
'Morning Bill,

SP3 is Service Pack 3 (Visual Studio) which you can download from Microsoft. C000000005 is some sort of internal VFP error, which I gather is the language's equivalent of a GPF. It's burned me too, as you probably know, and can get pretty persistent if whatever memory holes etc. remain in your system. I've found that re-booting will often clear it up, but why it starts in the first place is still a mystery to me (there appear to be a bunch of things which trigger the error.)

Mike
 
SP3 = Service Pack 3 or Version VFP6.3 (Call it what you want)
SP4 is the Currently Service Pack.
The Service Packs are a free downlod from MicroSoft.
Select Download from the top menu,
Look for Visual Studio 6.
Normally all Services packs have all previous changes so you should only have to download and install SP4. (Warning, Very Large File) [sig]<p>David W. Grewe<br><a href=mailto:Dave@internationalbid.net>Dave@internationalbid.net</a><br>[/sig]
 
Better do not use SP4, because it somewhat spoils VFP. I know about some bad reports regarding SP4. Use SP3 unless you really need items fixed in SP4 (there are no much of them for VFP).
Mike is right, this error is GPF (General Protection Fault) and is internal to the VFP. There are MANY cases when this eror may ocuur. But what you require to know is just a line of code that causes this error. Sometimes changing that line of code by using other VFP commands helps a lot. Sometimes this error caused by exceeding of VFP limits (huge SQL SELECT command is example).
To catch exact line of code that causes such crash you need to put something like 'checkpoints' in your code (messageboxes, beeps, wait windows, etc.). I don't know id coverage profiler can be used here, probably yes, but I doubt it will allow to know line exactly because crash.
Hope this helps.
[sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]
 
One of the things that trigger this annoying error has to do with the number of variables. There seems to be a max. to the availble no. of var's. VFP itself uses quit a number of (internal) var's and by adding your own (and who doesn't), at some moment things go boom (at least, this is what I was told).
In our organization we had the same problem, and it took a long time (and a visit to MicroSoft) before it was finally figured out.
This problem is fixed in SP4.
I'm not saying this is the solution for your problem, but who knows?

Diederik Vermeeren
Diederik.Vermeeren@exact.nl
 
Hi, guys!

MS released update pack for SP4. Check out on MS site. [sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]
 
I got a ton of varibles set up. . .could it be that there is a limit? Thanks to All for the feedback, including you, Michael Freeland!. . . see ya [sig][/sig]
 
How much is 'ton' ? ;)
You may use arrays instead of variables, or object with properties. This way you will have little of variables in memory because all of them are in array or in object property. This require program change, however... [sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top