Debug and Release

xiaoxiao2021-03-06  65

I got a library, Release. The run code is as follows:

K * const p = ***; // assignment

Fun (A, B, P); // Fun is the function in the library

.... // Operation to P

In the debug mode, P will become NULL after FUN, resulting in an abnormal rear program, but this problem is not below the Release version.

I added a line of code.

K * const p = ***; l

K * const pp = p;

Fun (A, B, PP)

...

This way is no problem, and it can be seen that P is not modified.

I don't know why, under the Debug mode, P will be modified to 0

Can you give you a point?

Use VC6.0

转载请注明原文地址:https://www.9cbs.com/read-111271.html

New Post(0)