Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C0000005 with VFP 6, SP3...please help!
Message
From
10/11/2000 16:30:55
 
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00440346
Message ID:
00440480
Views:
10
>Hi, gang...
>
>VFP App, compiled using VFP6, SP3, recently gave the C0000005 exception.
>
>User is running on a Dell laptop with plenty of RAM, but was running Outlook, Word, and IBM Client Access terminal emulator while running our app. User hit the save button to post a record to a transaction file with about 18,000 records, and got the C0000005 exception message. VFP actually gives the line # where it choked, yet the line number is in a simple loop...
>
>FOR nCounter = 1 to nTotBuckets
> IF EVAL('m.SpendDlr' + ALLTRIM(STR(nCounter))) = 0
> cCmd = 'm.SpendType' + ALLTRIM(STR(nCounter)) + ' = 0'
> &cCmd ((here's where it dies...anything to do with macro subst??))
> ENDIF
>ENDFOR
>
>This line has been executing fine for months (yes, I know, it's not great code, but it's legacy code and has always worked).
>
>When we asked the user to close the Terminal program and Outlook, it ran fine..but of course, the head of I.T. believes our app is crap, since 'all of the other apps get along fine'.
>

So this only happened once? I never fret singular occurences- it's useless. If you can't reproduce it, you can't fix it.

Nonetheless- since macroed statement is simply a variable assignment, you might consider changing it to use the STORE command:

STORE 0 TO ('m.SpendType' + ALLTRIM(STR(nCounter)))
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform