User forums > General (but related to Code::Blocks)

wxwidgets problem with dll

(1/1)

elettronica67:
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

Jenna:
It should work, if you don't call the wxMessageBox from a thread different to the main-thread.

MortenMacFly:

--- Quote from: jens 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.

--- End quote ---
This answer should be enough as this is not C::B related anyways. Topic locked.

Navigation

[0] Message Index

Go to full version