Tony2008

when does an program run normally with release version but debug version




Re: Visual C++ General hello, a program with release and debug

Ramkrishna Pawar

In a lot of cases... But all with a common a source, some mistake with your programming. Smile

Following might help you understand what all this is,

Surviving the Release Version - The Code Project - Debug tips

Debugging Release Mode Problems

Tips






Re: Visual C++ General hello, a program with release and debug

Tony2008

Thanks for Ramkrishna Pawar,but now have not solved this program.

My program crashes when I invoke one function which exported from a dll in debug mode,but runns normally in release mode






Re: Visual C++ General hello, a program with release and debug

Tony2008

thanks for Ramkrishna.

but I have not solved this problem.

My program crashed when I invoked a function exported from a dll with debug mode,but release mode.

Is it relative to runtime library






Re: Visual C++ General hello, a program with release and debug

Ramkrishna Pawar

Tony2008 wrote:

thanks for Ramkrishna.

but I have not solved this problem.

My program crashed when I invoked a function exported from a dll with debug mode,but release mode.

Is it relative to runtime library

The amount of information you have provided is not enough to make any statement, you should debug the release version (by enabling debug info and program database from project properties) and find out the code responsible for that.

The articles mentioned in my last post talk about various differences in debug & release mode, you should give a good read once.