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
#DEFINE c_DEBUG .T.
#DEFINE c_DEBUG <b>.F.</b>
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
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--