Author Topic: wxwidgets problem with dll  (Read 1890 times)

elettronica67

  • Guest
wxwidgets problem with dll
« 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

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: wxwidgets problem with dll
« Reply #1 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9493
Re: wxwidgets problem with dll
« Reply #2 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ