I have some more info. I'm not getting a line # because the error is occurring when opening a form. I put a WAIT WINDOW at the end of the BeforeOpenTables method and one at the beginning of the Form.Load. I see the message from the BOT method but not the Load, so I assume the error is occurring somewhere in between. The problem is, according to my coverage log, there is nothing in between! What can cause a form to give an error while loading other than code or data?
>Hi!
>
>You can figure out the code line in EXE by using error handler. Compile your exe with including the debug information. Then use certain functions in the error handler (see ON ERROR command in the help) to get the code line number, code line and other information to see what code line cause error. This way you will know it.
>
>Though the behavior is weird, indeed. Maybe something is corrupted? Did you tried to use "recompile all" option in your project? Do you use any external modules (not compiler into EXE) that were compiled with VFP6 but run in VFP7 EXE?
>
>>I searched the project and this is what I came up with as the only place I use "HDR1". I can't pinpoint the code that causes the error. The error only occurs when the program is run from the exe, where I can't debug. If I run it from the command window within VFP it is fine. That's what's making me crazy! And this was working beautifully in VFP6.
>>
>>>Hi!
>>>
>>>Can you send the exact code line that shows such error? Just debug application step by step and see what is the command.
>>>
>>>Do a global search in the project for "HDR1" word and see where it is used.
>>>
>>>
>>>>I recompiled my application in VFP7 and now I'm running into problems. It works fine from the command window, but I'm getting errors in my exe. When I RightClick on a grid and select Edit from the menu, it is supposed to bring up another form but instead I get an error saying "File 'HDR1' does not exist." The only time I use 'HDR1' is when I instantiate my header class, in the init of my grids. For each column, the code looks something like this:
>>>> loCol.AddObject("Hdr1",This.cHeaderClass,lcCaption,lnAlign)
>>>> loCol.Hdr1.Name="Header1"
>>>>I don't understand why RightClicking on a textbox in the grid should have anything to do with this, but I can't find any other source. Any help would be greatly appreciated.
>>>>
>>>>Thanks,
>>>>Elyse
Elyse Pomerantz