assert "win" failed (URGENT)

Discussion about CodeLite development process and patches
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

assert "win" failed (URGENT)

Post by HJarausch »

Hi,

my C++ course is approaching rapidly and CodeLite (SVN from 2010/10/13) fails with
./src/gtk/menu.cpp(52): assert "win" failed in DoCommonMenuCallbackCode(): event for a menu without associated window?

This is wxWidgets-2.9.1 and probably a too old version of gtk2.0

Is it a problem with CodeLite (SVN) or wxWidgets?

(I'd like to avoid to install a more recent version of gtk++ and cousins locally since I'm not administering that machine myself)

Many thanks for your help,
Helmut.
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: assert "win" failed (URGENT)

Post by jfouche »

I don't think CodeLite officialy support wxWidgets-2.9.1. I know that DavidGH offered some patched for 2.9 (svn log), You'd better use an official version (which is compiled vs 2.8.10 IIRC), or use 2.8.10 wxWidgets.
Jérémie
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: assert "win" failed (URGENT)

Post by HJarausch »

jfouche wrote:I don't think CodeLite officialy support wxWidgets-2.9.1. I know that DavidGH offered some patched for 2.9 (svn log), You'd better use an official version (which is compiled vs 2.8.10 IIRC), or use 2.8.10 wxWidgets.
Sorry, I must correct myself. The running version of CodeLite (on my own machine) is built against wxWidgets-2.8.11.0 .
I'll try that version on the other machine.

Sorry for the noise,
Helmut.
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: assert "win" failed (URGENT)

Post by DavidGH »

Hi Helmut,

For the record, that's a problem with CodeLite on wx2.9 (when you close the context menu). I've submitted a patch to Eran, but it's not yet been applied.

Regards,

David
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: assert "win" failed (URGENT)

Post by eranif »

I was going to compile wx291 under Windows when I realized that wx291 can not be compiled with MinGW udner Windows

So I might move to wxWidgets-trunk (Windows only)

Eran
Make sure you have read the HOW TO POST thread
frank_frl
CodeLite Expert
Posts: 176
Joined: Sun Aug 17, 2008 2:45 pm
Contact:

Re: assert "win" failed (URGENT)

Post by frank_frl »

eranif wrote:I was going to compile wx291 under Windows when I realized that wx291 can not be compiled with MinGW udner Windows
I used wxMSW-2.9.1-Setup.exe for Windows and could build it with MinGW without any problem.

Frank
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: assert "win" failed (URGENT)

Post by eranif »

I was not able to build it... (using the MinGW that comes with codelite)

Got link errors about wxSTC (I saw a bug in wxWidgets.org that said that this will be fixed in next version)
Eran
Make sure you have read the HOW TO POST thread
frank_frl
CodeLite Expert
Posts: 176
Joined: Sun Aug 17, 2008 2:45 pm
Contact:

Re: assert "win" failed (URGENT)

Post by frank_frl »

Hi Eran,

I'm using tdm-gcc-4.5.1

Frank
Post Reply