Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: elettronica67 on January 28, 2009, 08:34:54 am

Title: wxwidgets problem with dll
Post by: elettronica67 on January 28, 2009, 08:34:54 am
Hi to all,

I have a problem: if I compile any executable application (windows) using i.e. wxMessageBox it run very well, but if I use the same object (wxMessageBox) in a DLL the compiler and the linker don't generate error, so the DLL is created correctly but when I call the function inside  the program causes a Segmentation fault error.
I have created the DLL using the wizard CodeBlocks interface.

Someone can help me?
Thanks
Title: Re: wxwidgets problem with dll
Post by: Jenna on January 28, 2009, 10:02:39 am
It should work, if you don't call the wxMessageBox from a thread different to the main-thread.
Title: Re: wxwidgets problem with dll
Post by: MortenMacFly on January 28, 2009, 01:13:11 pm
It should work, if you don't call the wxMessageBox from a thread different to the main-thread.
This answer should be enough as this is not C::B related anyways. Topic locked.