c++ - Program triggers a breakpoint when run in debugger but works if run without debugger -
i created dll , getting attached server application. problem is, if run server command prompt dll running fine. if debug server in visual studio server crash because of dll. debugged thoroughly , got know crashing while assigning memory. checked evry possible thing, memory overwrite, memory leak, seems fine.
anyone encountered type of problem before. why happening? searched on internet getting " crashing in release mode , not in debug mode".
edit:
i getting following message on window:
windows has triggered breakpoint in tcas.exe. may due corruption of heap, indicates bug in tcas.exe or of dlls has loaded. may due user pressing f12 while tcas.exe has focus. output window may have more diagnostic information.
if click on continue, wont problem.
edit:
sorry forgot mention debug build using , not release build.
after trying everything, using permutation-combination , spending amount of time on this, forcefully, changed logic of function. , working, finally. still, searching answer original problem.
one thing didn't understand read same problem, mine, here http://www.debuginfo.com/tips/userbpntdll.html , when enable full pageheap application, mentioned in blog, application works fine. doesn't crash while debugging. , enabled it, in first place, can detailed information heap corruption. hope blog others having similar issue.
Comments
Post a Comment