Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Buffer Overrun detected!
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01031963
Message ID:
01032276
Views:
27
>>Just ran into something interesting (Bug). Follow the following procedure, you'll see the same problem if you follow the steps below:
>>Step1: Copy the following file into a prg e.g. testprg.prg and save it
>>
>>**************************************************
>>*-- Form:         (c:\my documents\visual foxpro projects\abcds\fmtest.scx)
>>*-- ParentClass:  cbaseform (c:\my documents\visual foxpro projects\\libs\test.vcx)
>>*-- BaseClass:    form
>>*-- Time Stamp:   01/28/05 11:07:03 AM
>>*
>>
>>
>>Step 2. Press Ctrl+A (select all) while editing testprg.prg
>>
>>Step 3. Press Ctrl+F3 (find highlighted)
>>
>>Step 4. Press Ctrl+L (popup find/replace window)
>>
>>then you get an error message:
>>
>>---------------------------
>>Microsoft Visual C++ Runtime Library
>>---------------------------
>>Buffer overrun detected!
>>
>>Program: ...ogram Files\Microsoft Visual FoxPro 9\vfp9.exe
>>
>>A buffer overrun has been detected which has corrupted the program's
>>internal state.  The program cannot safely continue execution and must
>>now be terminated.
>>
>>---------------------------
>>OK
>>---------------------------
>>
>>
>>This happens consistently.
>
>The limit of the buffer is 255 chars.
>
>Only if the first line is empty the bug appear.
>
>look for:
>* find line1
>
>line1
>line2
>
>
>* find line1\r\nline2
>
>
>line1
>line2
>
>
>Then:
>the buffer overrun appear with first line1 empty,
>but the true bug is with first line not empty!

Fabio,

I cannot reproduce what you've posted. Am I missing something?
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Reply
Map
View

Click here to load this message in the networking platform