Microsoft KB Archive/298902

= BUG: Error CBE6052 Occurs While Compiling Windows CE Programs with Win32 Exception Handling =

PSS ID Number: 298902

Article Last Modified on 6/13/2001

-

The information in this article applies to:


 * Microsoft eMbedded Visual C++, Version:4.0 3.0

-



This article was previously published under Q298902



SYMPTOMS
Code that includes a premature exit statement to exit from a __try block may fail to compile.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
Although such code is valid Win32 Structured Exception Handling (SEH) syntax, Microsoft recommends that you avoid using premature exit statements like return, goto, continue, break, and so forth to exit from a __try block. Due to a bug in the compiler, the eMbedded Visual C++ 3.0 compiler fails to compile when it encounters such situations.

The compiler will generate an error &quot;error CBE6052: __jump_unwind called&quot; while trying to compile the following source code: int CMyClass::MyDivide(int nX, int nY) {   __try {       if(0 == nY) return INVALID_PARAMETER; //....       //do your stuff }   __finally {       //....        //do your stuff }   return ERROR_SUCCESS; }

Additional query words: SEH, __finally

Keywords: kbbug kbDSupport KB298902

Technology: kbAudDeveloper kbVCeMb kbVCsearch

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.