Hello,

I have a weird situation. I have a class based on a
container, with about 20 methods and a dozen properties.
Pretty simple stuff in there. I can get access the class
method code by itself no problem.

The problem comes when I drop an instance of the class
onto a form. When I try to access the methods by double
clicking the object on the form, I get kicked out with a
C5 error.

I've tried changing the instance object name, the class
name, the form I'm dropping it onto, creating a new object
and cut/pasting all the methods into it, all to no avail.

Does anyone have any clue as to what might be going on and
how I can fix it?

TIA,
Cathy

Solution: VFP7 C5 error accessing class instance by Cathy

Cathy
Fri Jan 02 11:48:04 CST 2004

Found the source of the error, although I do not
understand it.

My INIT() method accepts a number of parameters, and in
order to make it more readable I separated the line into
multiple lines.

Apparently Fox doesn't like that? As long as the
parameters are all on one line, I can get into the
subclass.

What a stupid error!

Cathy

>-----Original Message-----
>Hello,
>
>I have a weird situation. I have a class based on a
>container, with about 20 methods and a dozen properties.
>Pretty simple stuff in there. I can get access the class
>method code by itself no problem.
>
>The problem comes when I drop an instance of the class
>onto a form. When I try to access the methods by double
>clicking the object on the form, I get kicked out with a
>C5 error.
>
>I've tried changing the instance object name, the class
>name, the form I'm dropping it onto, creating a new
object
>and cut/pasting all the methods into it, all to no avail.
>
>Does anyone have any clue as to what might be going on
and
>how I can fix it?
>
>TIA,
>Cathy
>
>.
>

Re: Solution: VFP7 C5 error accessing class instance by Eric

Eric
Mon Jan 05 00:37:02 CST 2004

Hello, Cathy!
You wrote on Fri, 2 Jan 2004 09:48:04 -0800:

CN> My INIT() method accepts a number of parameters, and in
CN> order to make it more readable I separated the line into
CN> multiple lines.

CN> Apparently Fox doesn't like that? As long as the
CN> parameters are all on one line, I can get into the
CN> subclass.

CN> What a stupid error!

I just tried to repro this behavior, but I don't get any error. Do you get
the same error if you create a new class? If not, then I think the original
problem was with the VCX/VCT files. (VFP7 SP1)
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Re: Solution: VFP7 C5 error accessing class instance by Leemi

Leemi
Mon Jan 05 12:20:32 CST 2004

Hi Cathy:

If the problem is related to file corruption as Eric mentions, then you can
also try issuing a COMILE CLASS <filename.vcx> command from the Command
window. Sometimes simply recompiling the class can fix the error and it is
often easier than recreating the class from scratch.

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
Purchase VFP8 here:
http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retires Sept. 30th, 2003



>Hello, Cathy!
>You wrote on Fri, 2 Jan 2004 09:48:04 -0800:

> CN> My INIT() method accepts a number of parameters, and in
> CN> order to make it more readable I separated the line into
> CN> multiple lines.

> CN> Apparently Fox doesn't like that? As long as the
>CN> parameters are all on one line, I can get into the
> CN> subclass.

> CN> What a stupid error!

>I just tried to repro this behavior, but I don't get any error. Do you get
>the same error if you create a new class? If not, then I think the original
>problem was with the VCX/VCT files. (VFP7 SP1)
>--
>Eric den Doop
>www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8