-
February 5th, 2013, 07:18 AM
#1
Unhandled Exceptions different in 64bit? / vs2008
I have a program that works fine in 32bit mode on vs6.
but in 2008 64bit it sometimes gets an unhandled exception crash in the following code (PostMessage line):-
Is something different in 64bit vs2008? error is: Access violation reading location
if(wnd && ::IsWindow(wnd->m_hWnd))
{
try
{
wnd->PostMessage(WM_COMMAND,MAKELONG(0x01,BN_CLICKED),(LPARAM)(wnd->GetDlgItem(0x01))->m_hWnd); // post ok to message
}
catch(...)
{
// do nothing
}
}
Last edited by hobnob; February 5th, 2013 at 07:32 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|