Page 1 of 1

assert "win" failed (URGENT)

Posted: Wed Oct 13, 2010 4:11 pm
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.

Re: assert "win" failed (URGENT)

Posted: Wed Oct 13, 2010 4:29 pm
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.

Re: assert "win" failed (URGENT)

Posted: Wed Oct 13, 2010 6:43 pm
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.

Re: assert "win" failed (URGENT)

Posted: Thu Oct 14, 2010 3:39 pm
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

Re: assert "win" failed (URGENT)

Posted: Thu Oct 14, 2010 3:46 pm
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

Re: assert "win" failed (URGENT)

Posted: Thu Oct 14, 2010 5:43 pm
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

Re: assert "win" failed (URGENT)

Posted: Thu Oct 14, 2010 10:28 pm
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

Re: assert "win" failed (URGENT)

Posted: Fri Oct 15, 2010 12:14 pm
by frank_frl
Hi Eran,

I'm using tdm-gcc-4.5.1

Frank