Debug build breaks, Release build ok. 
Author Message
 Debug build breaks, Release build ok.

What you're seeing is an ASSERT statement or a breakpoint trap.
                        joe

On Fri, 21 Jul 2000 01:41:56 +0800, "Mick"

Quote:

>I have a program that is running fine, until I entered a breakpoint in debug
>build in VC6. Then I went to select Release version and VC disabled the
>breakpoint. Realising the mistake, I went back to debug mode and removed the
>break point. Now the program runs fine only for release build. For a debug
>build, I always get the messsage - "program has performed an illegal
>operation:-

>Hitting the details button gives:-

>DOC caused an exception 03H in module KERNEL32.DLL at 017f:bff768a1.
>Registers:
>EAX=00000000 CS=017f EIP=bff768a1 EFLGS=00000247
>EBX=0064ac52 SS=0187 ESP=00647614 EBP=00647618
>ECX=10256538 DS=0187 ESI=0064a708 FS=3b57
>EDX=00000000 ES=0187 EDI=0064a650 GS=0000
>Bytes at CS:EIP:
>c3 cc cc 55 8b ec 56 57 68 c0 94 fc bf e8 01 d9
>Stack dump:
>10213829 0064a650 10213a48 0064a850 00000000 00000000 00000000 00000000
>00000000 00000000 00000000 00000000 bff50000 00000000 00000000 00000000

>and hitting Debug gives:-
>BFF768A0   int         3
>BFF768A1   ret
>BFF768A2   int         3
>BFF768A3   int         3
>BFF768A4   push        ebp
>BFF768A5   mov         ebp,esp
>BFF768A7   push        esi
>BFF768A8   push        edi
>BFF768A9   push        0BFFC94C0h
>BFF768AE   call        BFF741B4
>BFF768B3   mov         edi,dword ptr ds:[0BFFCA0BCh]
>BFF768B9   or          edi,edi
>BFF768BB   je          BFF768F9

>What is happening? Seems I've got a breakpoint still trapped in? I went and
>set another breakpoint and then clear all breakpoints - still could not get
>it to work.

>It is a siimple docview app SDI MFC. I even renamed project, and used VC6 to
>recreate a similar project and copied only the .cpp and .h files over and
>recompiled - still same problem!!

>There are no directives used in the programs that changes behaviour / code
>in the sources regardless of build type.

>Thanks.

Joseph M. Newcomer [MVP]

Web: http://www.*-*-*.com/ ~newcomer
MVP Tips: http://www.*-*-*.com/ ~newcomer/mvp_tips.htm


Mon, 06 Jan 2003 03:00:00 GMT  
 Debug build breaks, Release build ok.
I have a program that is running fine, until I entered a breakpoint in debug
build in VC6. Then I went to select Release version and VC disabled the
breakpoint. Realising the mistake, I went back to debug mode and removed the
break point. Now the program runs fine only for release build. For a debug
build, I always get the messsage - "program has performed an illegal
operation:-

Hitting the details button gives:-

DOC caused an exception 03H in module KERNEL32.DLL at 017f:bff768a1.
Registers:
EAX=00000000 CS=017f EIP=bff768a1 EFLGS=00000247
EBX=0064ac52 SS=0187 ESP=00647614 EBP=00647618
ECX=10256538 DS=0187 ESI=0064a708 FS=3b57
EDX=00000000 ES=0187 EDI=0064a650 GS=0000
Bytes at CS:EIP:
c3 cc cc 55 8b ec 56 57 68 c0 94 fc bf e8 01 d9
Stack dump:
10213829 0064a650 10213a48 0064a850 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 bff50000 00000000 00000000 00000000

and hitting Debug gives:-
BFF768A0   int         3
BFF768A1   ret
BFF768A2   int         3
BFF768A3   int         3
BFF768A4   push        ebp
BFF768A5   mov         ebp,esp
BFF768A7   push        esi
BFF768A8   push        edi
BFF768A9   push        0BFFC94C0h
BFF768AE   call        BFF741B4
BFF768B3   mov         edi,dword ptr ds:[0BFFCA0BCh]
BFF768B9   or          edi,edi
BFF768BB   je          BFF768F9

What is happening? Seems I've got a breakpoint still trapped in? I went and
set another breakpoint and then clear all breakpoints - still could not get
it to work.

It is a siimple docview app SDI MFC. I even renamed project, and used VC6 to
recreate a similar project and copied only the .cpp and .h files over and
recompiled - still same problem!!

There are no directives used in the programs that changes behaviour / code
in the sources regardless of build type.

Thanks.



Tue, 07 Jan 2003 03:00:00 GMT  
 Debug build breaks, Release build ok.
It was working fine! How do I get rid of the debug break - there is none as
I have checked.



Quote:
> What you're seeing is an ASSERT statement or a breakpoint trap.
> joe



Tue, 07 Jan 2003 03:00:00 GMT  
 Debug build breaks, Release build ok.
Thanks everyone. Problem solved. There was a runtime error caused by
different setting in DocView() and DocPreview().


Wed, 08 Jan 2003 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Debug build breaks, Release build ok

2. Worker Thread and MDI app - Release Build dies but Debug Build OK

3. Debug build ok, release - unresolved external _main

4. Release build OK / Debug version crashes /ODBC /dbcore.cpp

5. STRCPY does not work in debug, Ok in release build

6. Release build OK / Debug version crashes /ODBC /dbcore.cpp

7. Debug Build vs. Release Build

8. Debug Build works Release build doesn't?

9. Protection Violation in Release Build but not in Debug Build

10. Debug build works correctly but release build doesnt (sometimes)

11. Debug build works, release build crashes!

12. Error in Release build but not Debug build

 

 
Powered by phpBB® Forum Software