Original Post
Take the following straight forward code: this will catch the error which occours (Access violation when writing to location), however, how can you determin which error you have caught. For example, could another error possibly be thrown, or would it always be that one in particular. Additionally, if another error can be thrown how do you find out what it is? I am currently using Win32 & VC.NET 2002, but will this sort of error be throw in other OS's, ie. Is this portable? Regards
char * a = (char *)53;
try
{
a[3] = 97;
}
catch (...)
{
// your handler
}