Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Short-Cut Menu Builder - Error Occurs During Build?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00577397
Message ID:
00577694
Views:
16
This message has been marked as the solution to the initial question of the thread.
Hi Kirk,

To get meaningfull error message you have to turn off debug mode in genmenu.prg left by mistake on, I guess. Change code in the line 36
* From
#DEFINE c_DEBUG .T.  && Add debug mode [Rev: 4][ADD]
* To
#DEFINE c_DEBUG <b>.F.</b>  && Add debug mode [Rev: 4][ADD]
Anyway, I think that you get error on the line
m.stat = <b>opendb</b>(g_mnxfile[1]) AND <b>openfile</b>()
It looks like you're using a library (FLL or DLL) that has one of the functions listed above and genmenu tryies to use it instead of it's own function with the same name. Try to issue
SET LIBRARY TO 
* or 
CLEAR DLLS
before generating a menu to clear the library from the memory.


>I'm using vfp7 and created a short-cut menu. If I just work with the menu to problems. But, after editting the menu and then running the application, if I edit the menu, and to generate, I get an error:
>
>1. I get a messagebox that says: "Function argument value, type or count is invalid" with an OK button. I click okay, and my debugger opens up
>
>2. Call Stack when debugger opens:
>Errorhandler
>On Error
>Buildenable
>build
>genmenu
>
>3. Debugger is sitting on the following line of code:
>
>CASE m.code == c_error_1
>
>m.code shows a value of "FATAL"
>c_error_1 doesn't show anything, popup value does not popup.
>
>If I click the run in the debugger, it pops another message
>box up that says Variable "STAT" no found.
>
>I have to quit the IDE to be able to generate.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform