Unbale post event from dll

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
johnnie
Experienced Solver
Experienced Solver
Posts: 64
Joined: Mon Jan 14, 2008 8:59 am
Location: Bangalore
Contact:

Unbale post event from dll

Post by johnnie » Thu Aug 12, 2010 10:51 am

Hi all,

I have created a dynamic link library (DLL). When I try to post a custom event I am getting the following error from debugger.

Code: Select all

#0  0x7c90100b in ntdll!RtlEnumerateGenericTableLikeADirectory () from C:\SYSROOT\system32\ntdll.dll
#1  0x6d64dfe5 in wxCriticalSection::Enter() ()
   from d:\Atlas_porting\ATLAS_WINDOWS\atlas\dynlib\libs\libthreadtest.dll
#2  0x6d644a78 in wxEvtHandler::AddPendingEvent(wxEvent&) ()
   from d:\Atlas_porting\ATLAS_WINDOWS\atlas\dynlib\libs\libthreadtest.dll
#3  0x6d6a07a6 in wxPostEvent (dest=0xc09150, event=...)
    at D:/Atlas_porting/mingw/wxWidgets-2.8.11/include/wx/event.h:2570
#4  0x6d58133f in MyThread::Initialize (this=0xc0a140, iPort=2358792, pParentEventHandler=0xc09150)
    at src/threadtest.cpp:29
I have this piece of code in the dll.

Code: Select all

logDebugMsg(__FILE__,__LINE__,wxT("MyThreadClass :: Posting event"));
wxCommandEvent cmdEvent( wxEVT_COMMAND_MENU_SELECTED, INVALID_CACHE_EVENT);
wxPostEvent(pParentEventHandler,cmdEvent);
logDebugMsg(__FILE__,__LINE__,wxT("MyThreadClass :: Posted Event"));
Please help

Johnnie
--johnniealan --

Post Reply