Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Buffer overrun in error handler
Message
From
23/01/2013 11:07:36
 
 
To
17/01/2013 15:18:46
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01418664
Message ID:
01563818
Views:
77
Hi Rick.

>The LIST MEMORY command you are using does not list the full contents of all memory variables. Using SAVE TO will store the full strings. It may prevent the buffer overrun error you are getting, and can be restored and parsed later to see the full set of variables at the time of the crash.

I hadn't thought of using SAVE TO in an error handler. It *is* a pain that LIST MEMORY cuts off the value of string variables. So, I tried it and found one deal-breaking flaw: while LIST MEMORY lists all memory variables, SAVE TO only lists those currently in scope (IOW, in the error handler itself). So, it doesn't really work in an error handling situation.

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform