memcpy in Debug mode behaves like memmove

excerpt from Debug vs. Release by Joseph M. Newcomer (see link below):
Its definately worth reading in its entirety, not just the memcpy section.

It has been reported to me that memcpy might be implemented differently between the Debug mode and the Release mode such that a memcpy which had no problem in Debug mode will fail completely in the Release mode.

I agree!

Good luck finding any official documentation on this.

REF:
Debug vs. Release by Joseph M. Newcomer

About these ads

About Ed Nafziger

Ed is a computer programmer who works on both MFC/C projects and maintaining legacy C code. The majority of projects he works with are either Windows desktop or CE, and he will be sharing some of his trade secrets on these topics.

Posted on October 1, 2011, in C/C++, Debug and tagged , , , . Bookmark the permalink. 1 Comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: