Hi,

Alain wrote:

[...]
BTW: do you have information about memcpy() problems in BC 3.1 ? Last week I had a very hard to trace bug (in a TSR) that was solved replacing it with memmove(). Andreas sayd that he had problems with it too.

Are you sure the two buffers you are memcpy-ing don't overlap? The memcpy function assumes the two buffers don't overlap (neither by 1 byte), making this assumption makes it work faster, but it fails on overlapping buffers. The memmove function doesn't make this assumption, so it works for overlapping buffers, at price of a slight decrease in performance.


So the "replacing memcpy with memmove" may be a feature, not a bug :-)

Ciao



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to