Discussion:
[Exodus-dev] Exodus Plugin. Problem with "showToast()" method
Fred O'Leary
2004-07-09 15:29:51 UTC
Permalink
Hi,
My plugin invokes IExodusController::showToast( "A Messsage", (long)m_hWnd, 1 );
The toast popup shows OK but when I click on it I get the following error.
"Access violation at address 00549F53 in module 'Exodus.exe'..."
I assume this is a result of trying to bring m_hWnd to the top. m_hWnd is a valid Win32 HWND. Does anyone know if there are any particular requirements of the HWND, (WS_XXX styles etc)
Thanks in advance
-Fred
Peter Millard
2004-07-09 15:29:51 UTC
Permalink
Post by Fred O'Leary
Hi,
My plugin invokes IExodusController::showToast( "A Messsage", (long)m_hWnd, 1 );
The toast popup shows OK but when I click on it I get the following error.
"Access violation at address 00549F53 in module 'Exodus.exe'..."
I assume this is a result of trying to bring m_hWnd to the top. m_hWnd is a
valid Win32 HWND. Does anyone know if there are any particular requirements
of the HWND, (WS_XXX styles etc)
/me hides :)
There are no requirements, I was just an idiot the day I coded that up.. please
submit a bug report. There are issues in the click handler which assume there is
always a form (which in your case is not true). What is supposed to happen is
that I call setForegroundWindow(handle).

pgm.

Loading...