Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recursive method causes fatal exception
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00708166
Message ID:
00708330
Views:
9
>>I'm using VPF7 and am trying to write a method on a form that calls itself recursively, something I have done before in VPF6. As soon as I put the open paren on the end of the recursive method call I get a C0000005 fatal exception error and VPF shuts down.
>>
>>Has anyone else had this problem and knows what is happening?
>>
>>TIA
>**********
>You should post your exact code. It might help eliminate an intellesense bug in VFP8.

Pretty simple actually.

With IntelliSense on: Create a new method MyMethod in a form or class.

In MyMethod, type ThisForm.MyMethod(

As soon as you type the open paren you get a Fatal Error

Interesting though, you can call predefined methods recursively without this problem occuring.

Jim is right, it must be IntelliSense not knowing how to figure out the param list on user defined methods as it does not happen if you only type ThisForm.MyMethod with out a paren.

ken
Previous
Reply
Map
View

Click here to load this message in the networking platform