Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C0000005 with TEXTMERGE()
Message
From
11/06/2002 18:28:11
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00666832
Message ID:
00667128
Views:
31
This message has been marked as a message which has helped to the initial question of the thread.
C5 errors are typically buffer overruns, sometimes caused by the C++ programmer mistakenly expecting a string to be null-terminated. So if you see a C5 error, and you know what function or command it is occurring in, the first thing to do to work around the issue is to try null-terminating your strings.

In experimenting with the TEXTMERGE(), I find that null-terminating the string prevents the C5 error.

lcMergedString = TEXTMERGE(lcMyString + CHR(0))

I can't guarantee it will solve the problem for you, but it is worth try. MSFT is aware of this particular issue.

(This posting is provided "AS IS" with no warranties, and confers no rights. )
Previous
Reply
Map
View

Click here to load this message in the networking platform