Author Topic: Problem with WxWidgets app.  (Read 8771 times)

Offline mat75

  • Single posting newcomer
  • *
  • Posts: 6
Problem with WxWidgets app.
« on: May 17, 2011, 03:42:59 pm »
Hello.
Sorry for my poor English.
I recently installed codeblocks on my computer (Win7 home Premium 64bit), Mingw-w64 from sourceforge and compile WxWidgets 2.9.2.
(mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 USE_STC=0 USE_PROPGRID=1 BUILD=release)
After creating a new GUI WxWidgets application I successfully compile it, but when I try execute this app  got an windows error message "application is not running properly (0x000007b) Click ok to terminate the application".
I copy wxmsw292u_gcc_custom.dll into application bin\release directory but error don't disappear.
Dependency Walker report Error: Modules with different CPU types were found.
All build files are 64bit but when append file WXMSW292U_GCC_CUSTOM.DLL Dependency Walker shows the break link to the COMCTL32.dll(32bit).
Other apps using QT or FLTK 1.3 compiles and execute fine.
I don't post the log file from dependency walker(13,8M).
What am I doing wrong
Please help me.
Greetings to all forum users

*****************************| System Information |*****************************
Dependency Walker:       2.2.6000 (64-bit)
Operating System:        Microsoft Windows NT/2000/XP/2003/Vista based Home Premium (64-bit)
OS Version:              6.01.7601 Service Pack 1
Processor:               AMD64 Family 16 Model 5 Stepping 2, AuthenticAMD, ~2913MHz
Number of Processors:    3, Mask: 0x0000000000000007
...
c:\>gcc -v
Using built-in specs.
Target: x86_64-w64-mingw32
Configured with: ../gcc44-svn/configure --host=x86_64-w64-mingw32 --target=x86_6
4-w64-mingw32 --disable-multilib --enable-checking=release --prefix=/mingw64 --w
ith-sysroot=/mingw64 --enable-languages=c,c++,fortran,objc,obj-c++ --enable-libg
omp --with-gmp=/mingw64 --with-mpfr=/mingw64 --disable-nls --disable-win32-regis
try
Thread model: win32
gcc version 4.4.7 20110505 (prerelease) [svn/rev.173454 - mingw-w64/oz] (GCC)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Problem with WxWidgets app.
« Reply #1 on: May 17, 2011, 04:28:49 pm »
I suggest posting on a site that supports wxWidgets or/and MinGW64.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline mat75

  • Single posting newcomer
  • *
  • Posts: 6
Re: Problem with WxWidgets app.
« Reply #2 on: May 19, 2011, 10:28:44 am »
I created a blank project and copied the files a simple application from
http://zetcode.com/tutorials/wxwidgetstutorial/firstprograms/
The project compiled without problem and is successfully launched.
I do not know why the above-mentioned application is crashing.

Offline mat75

  • Single posting newcomer
  • *
  • Posts: 6
Re: Problem with WxWidgets app.
« Reply #3 on: May 19, 2011, 10:45:41 am »
I've created a Codeblocks GUI project available in the template WxWidgets GUI.
Select option WxWidgets 2.9.x (SVN version), set project name & project directory, etc.
Select option use WxWidgets DLL
Select option use WxWidgets is build as a monolithic library
Select option use Enable UNICODE
Deselect option create and use precompiled header (PCH) (if it is enable cc1.exe from ingw64 directory is crashed)
The project compiled successfully but when I try to run it it crashes on that in a post message.

Offline macylapka

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Problem with WxWidgets app.
« Reply #4 on: May 19, 2011, 12:06:27 pm »
Hi

It's possible you have link more than 1 *.dll lib ?

Regards
Windows XP, Vista & Ubuntu 10.10
TDM-GCC 4.5.2 SJLJ
Code Blocks SVN
wxWidgets 2.8.12 & 2.9.2

Offline mat75

  • Single posting newcomer
  • *
  • Posts: 6
Re: Problem with WxWidgets app.
« Reply #5 on: May 20, 2011, 09:36:08 am »
I link only one Library libwxmsw29u.a

Offline GPBeta

  • Multiple posting newcomer
  • *
  • Posts: 13
  • Just a Baka
    • StudioGPBeta
Re: Problem with WxWidgets app.
« Reply #6 on: August 23, 2011, 02:59:48 pm »
hi mat75!
i get the same problem like you!
there is no error ms occured while compiling wxWidgets 2.9.2 as a dynamic mon lib with mingw-64
but programes liked with this library all crash(exception exit)

then i use pestudio to open the exe file but i realize that there's no import functions found

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Problem with WxWidgets app.
« Reply #7 on: August 23, 2011, 03:52:26 pm »
I suggest posting on a site that supports wxWidgets or/and MinGW64.

Tim S.

If you find the solution at some other site feel free to post it in this thread. This question is not a Code::Blocks use question; so, it is not really a question that is valid for this site.

Note: You might try asking how to use Code::Blocks to debug an wxWidgets 2.9 app in another thread because it is a Code::Blocks question. No idea whether that would help solve the problem. I do not use the debugger enough to know all of what it can do.

Tim S.
« Last Edit: August 23, 2011, 03:58:08 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org