Click here to Skip to main content
16,004,806 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralReally Desperate Spy Modification Pin
Larry3-Oct-00 4:45
Larry3-Oct-00 4:45 
GeneralCase Sensetive ComboBox Selection Pin
nogga3-Oct-00 3:52
nogga3-Oct-00 3:52 
GeneralSTL and dynamic objects Pin
JoJo3-Oct-00 2:47
JoJo3-Oct-00 2:47 
GeneralRe: STL and dynamic objects Pin
Erik Funkenbusch4-Oct-00 13:11
Erik Funkenbusch4-Oct-00 13:11 
GeneralSending data in separate TCP packets using Visual C++ Pin
Sergei2-Oct-00 21:42
Sergei2-Oct-00 21:42 
GeneralRe: Sending data in separate TCP packets using Visual C++ Pin
Member 12089653-Oct-00 4:58
Member 12089653-Oct-00 4:58 
GeneralRe: Sending data in separate TCP packets using Visual C++ Pin
Erik Funkenbusch4-Oct-00 13:16
Erik Funkenbusch4-Oct-00 13:16 
GeneralSEH problem in release mode Pin
Robin2-Oct-00 18:26
Robin2-Oct-00 18:26 
Just to let u know..

There seems to be a problem with SEH raising exceptions in release mode (using VC++ 6 SP4)

In release mode, a divide by zero does not raise any exceptions but it does in debug mode. However, if I uncomment the cout line after the divide (in release mode), an exception would be raised.

If the program was compile with the /EHa option (asynchronous exception), then an exception is always raised.

I didn't do an disassembly but it's probably due to the compiler not generating the divide code since it's not used.

[source]
#include < windows.h >
#include < iostream >
#include < stdexcept >

using namespace std;

void SEH_Translator( unsigned int u, EXCEPTION_POINTERS* pExp )
{
throw exception("SEH exception");
}

void main()
{
try
{
_set_se_translator(SEH_Translator);

int x,y;

x = 9999;
y = 0;

int z = x/y; // cause a divide by zero exception
// cout << z << endl; // uncommenting this throws an exception in release mode
}
catch(...)
{
cout << "Exception caught" << endl;
}
}
[/source]
GeneralRe: SEH problem in release mode Pin
Feng Yuan2-Oct-00 19:38
Feng Yuan2-Oct-00 19:38 
GeneralRe: SEH problem in release mode Pin
JoeBloggs5-Oct-00 17:34
JoeBloggs5-Oct-00 17:34 
GeneralHandle to a window Pin
Roger2-Oct-00 5:31
Roger2-Oct-00 5:31 
GeneralRe: Handle to a window Pin
Sam Hobbs2-Oct-00 19:39
Sam Hobbs2-Oct-00 19:39 
GeneralRe: Handle to a window Pin
Roger3-Oct-00 1:13
Roger3-Oct-00 1:13 
GeneralRe: Handle to a window Pin
Frank Deo3-Oct-00 1:37
Frank Deo3-Oct-00 1:37 
GeneralRe: Handle to a window Pin
Roger3-Oct-00 1:38
Roger3-Oct-00 1:38 
GeneralRe: Handle to a window Pin
Frank Deo3-Oct-00 1:44
Frank Deo3-Oct-00 1:44 
GeneralRe: Handle to a window Pin
Roger3-Oct-00 1:47
Roger3-Oct-00 1:47 
GeneralRe: Handle to a window Pin
Roger3-Oct-00 1:55
Roger3-Oct-00 1:55 
GeneralRe: Handle to a window Pin
GBO3-Oct-00 2:55
GBO3-Oct-00 2:55 
GeneralRe: Handle to a window Pin
Roger3-Oct-00 2:58
Roger3-Oct-00 2:58 
GeneralRe: Handle to a window Pin
Sam Hobbs3-Oct-00 8:40
Sam Hobbs3-Oct-00 8:40 
GeneralHowto: assign hotkeys to tab-control Pin
AkelA2-Oct-00 4:53
AkelA2-Oct-00 4:53 
GeneralAbstracting serial and socket ports in a class Pin
Jason2-Oct-00 4:47
Jason2-Oct-00 4:47 
GeneralHOWTO: Find the Pin
Jeremy Davis2-Oct-00 2:58
Jeremy Davis2-Oct-00 2:58 
GeneralRe: HOWTO: Find the Pin
Stephen Kellett2-Oct-00 5:10
Stephen Kellett2-Oct-00 5:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.