Asserts in 2.9.4 release ? Topic is solved
-
- Earned a small fee
- Posts: 20
- Joined: Sat Nov 26, 2011 3:15 pm
Asserts in 2.9.4 release ?
I do not know how to solve the problem with these asserts in 2.9.4
1. I compiled wxWidgets ( mingw32-make -f makefile.gcc BUILD=release SHARED=0 MONOLITHIC=1 UNICODE=1 )
2. When i try add wxAUImanager+AUInotebook+panels i have asserts when i close my program :
/src/comman/wincmn.cpp(468):assert: GetEventHandler()==this failed in wxWindowsBase....
=========== NEXT STEP ======
3. I make again wxWidgets with this : http://forums.wxwidgets.org/viewtopic.p ... 7&p=140532
4. I compiled wxWidgets with DEBUG_FLAG=0 and in my project I have : #defines: wxDEBUG_LEVEL=0
Results:
When I need wxPDFdocuments and wxFreeChart and wxFTP ... I have asserts about AUI and wxThreads
when all asserts disable then I can not works with this librarys becose I have message about ... undifined reference to wxTheAssertHandler ..
How do I perform the operation wxWidgets ( compile with Assert ) but not display them in the release version
Need help please?
1. I compiled wxWidgets ( mingw32-make -f makefile.gcc BUILD=release SHARED=0 MONOLITHIC=1 UNICODE=1 )
2. When i try add wxAUImanager+AUInotebook+panels i have asserts when i close my program :
/src/comman/wincmn.cpp(468):assert: GetEventHandler()==this failed in wxWindowsBase....
=========== NEXT STEP ======
3. I make again wxWidgets with this : http://forums.wxwidgets.org/viewtopic.p ... 7&p=140532
4. I compiled wxWidgets with DEBUG_FLAG=0 and in my project I have : #defines: wxDEBUG_LEVEL=0
Results:
When I need wxPDFdocuments and wxFreeChart and wxFTP ... I have asserts about AUI and wxThreads
when all asserts disable then I can not works with this librarys becose I have message about ... undifined reference to wxTheAssertHandler ..
How do I perform the operation wxWidgets ( compile with Assert ) but not display them in the release version
Need help please?
Re: Asserts in 2.9.4 release ?
Compiling with DEBUG_FLAG=0 on the command line should have worked. You probably have to pass that when building the wx libraries and also when you build your own application.
However, even if some asserts are harmless, the one you posted looks more serious and you should try to fix the reason for the assert rather than suppressing it.
However, even if some asserts are harmless, the one you posted looks more serious and you should try to fix the reason for the assert rather than suppressing it.
Use the source, Luke!
-
- Earned a small fee
- Posts: 20
- Joined: Sat Nov 26, 2011 3:15 pm
Re: Asserts in 2.9.4 release ?
You're right, but even when I do a new test project with AUIManager+AUI notebook+some imagepanels without any other libraries then I have this error too.
Surely all content is wxWidgets components. Maybe in AUI something is wrong?
Surely all content is wxWidgets components. Maybe in AUI something is wrong?
Re: Asserts in 2.9.4 release ?
Does it also happen when you build and run the "aui" sample?Surely all content is wxWidgets components. Maybe in AUI something is wrong?
Use the source, Luke!
-
- Earned a small fee
- Posts: 20
- Joined: Sat Nov 26, 2011 3:15 pm
Re: Asserts in 2.9.4 release ?
Here is link for my test project with source file.
https://dl.dropbox.com/u/28560522/_error/Test_AUI.rar
Maybe someone will see this and will help in finding the error
Thanks
https://dl.dropbox.com/u/28560522/_error/Test_AUI.rar
Maybe someone will see this and will help in finding the error
Thanks
Re: Asserts in 2.9.4 release ?
http://forums.wxwidgets.org/viewtopic.php?f=1&t=32533
http://forums.wxwidgets.org/viewtopic.php?f=30&t=32138
Bottom line is: You need to call UnInit() on your wxAuiManager instance in the wxFrame dtor.
http://forums.wxwidgets.org/viewtopic.php?f=30&t=32138
Bottom line is: You need to call UnInit() on your wxAuiManager instance in the wxFrame dtor.
Use the source, Luke!
Re: Asserts in 2.9.4 release ?
I wonder why this patch has not been applied already.
Re: Asserts in 2.9.4 release ?
It's strange for me too, why ??
Re: Asserts in 2.9.4 release ?
If this patch is important to you, you can easily apply it to your local copy.
Because Vadim is pretty much the only one who's doing this and he already has around 80-90% of all wx development on his shoulders - next to his daytime job.It's strange for me too, why ??
Use the source, Luke!
-
- Earned a small fee
- Posts: 20
- Joined: Sat Nov 26, 2011 3:15 pm
Re: Asserts in 2.9.4 release ?
Is this important to me ..????
Wow I am first with AUI asserts error so... WELCOME
I think when we have problems we must try resolve it.
So thanks
Wow I am first with AUI asserts error so... WELCOME
I think when we have problems we must try resolve it.
So thanks
Re: Asserts in 2.9.4 release ?
No, see my post further above.Wow I am first with AUI asserts error so... WELCOME
Use the source, Luke!
-
- Earned a small fee
- Posts: 20
- Joined: Sat Nov 26, 2011 3:15 pm
Re: Asserts in 2.9.4 release ?
So after added patch AUI and again compile wxWidgets the AUI works fine ( without asserts )
And wxPDFdocuments works fine.
So ... thanks for help.
ps. How i can make this post [SOLVED] ? ........... or Admin must do it ?
Thanks again
And wxPDFdocuments works fine.
So ... thanks for help.
ps. How i can make this post [SOLVED] ? ........... or Admin must do it ?
Thanks again
Re: Asserts in 2.9.4 release ?
To mark a post solved, click on the green check icon on top of the post that helped you most
"Keyboard not detected. Press F1 to continue"
-- Windows
-- Windows