News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

wxwidgets problem with dll

Started by elettronica67, January 28, 2009, 08:34:54 AM

Previous topic - Next topic

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.
This answer should be enough as this is not C::B related anyways. Topic locked.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]