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

C000005 fatal error on form load

Status
Not open for further replies.

SnyAc

Programmer
Jul 25, 2001
272
US
I have a form that is getting a fatal error when it is called. I have set step on and can step thru the LOAD method and the fatal error occurs immediately after the LOAD method is finished so I'm assuming that it must something that is instantiated when the form object is created. How would I determine which control is causing the problem?

Andy Snyder
SnyAc Software Services
 
Hi Andy,

How would I determine which control is causing the problem?

Copy the form to a new form. In the copy, remove all the controls. Then start adding them back, one a time, until the error occurs.

Or, you can go the other way, that is, keep on removing the controls until the error goes away.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Unfortunately that would be almost a hopeless task... the form is pretty complex... many, many controls.... This is a situation where the form apparently works on the clients workstations, but not on their server which is the machine I connect to for maintenance. There is at least 1 activex control on the form. I have discovered that the _vfp.autoyield property has not been set to .F. so I'm going to try that in the load method.

Andy Snyder
SnyAc Software Services
 
Andy,

Did the form ever work? Have you recently added controls?

If it works on all(?) the client's workstations, then I'd suspect something is different about the server.

Has the form ever worked on the server?

Hope that helps,

Stewart
PS If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Stewart... to the best of my knowledge the form displays on the workstations. No controls have been added that i'm aware of. I don't have any reference to find out if it ever worked on the server since the client does not use the server as a workstation. I am maintaining/enhancing an application that is installed at multiple clients and as far I know no one has had this fatal error just launching the form (I'm sure we would have heard about it). I'm debugging a problem with an image display tab on this form (pageframe) which does contain an activex control. As far as I can tell the control has been registered correctly and I can't reproduce the fatal error on our base/control systems here at our office. (I've always hated these C000005 errors... so hard to debug) It works fine on our office/base system. No problem modifying the form thru FoxPro.... The installed version is VFP7.

Andy Snyder
SnyAc Software Services
 
Craig... good suggestion, tho I had already considered that. There aren't any foxuser tables anywhere on their system (I avoid using them in practice anyway).

Andy Snyder
SnyAc Software Services Hyperware Inc.
AmTech Software Inc.
 
Andy,

You mentioned something called an "image display tab". I'm not sure what that is, but if it contains an image file, could it be that the file itself has become corrupted? That could cause a C5 error, even though the image might display correctly in other applications.

Mike



__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top