Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » GeoFun crashes under Ubuntu
Re: GeoFun crashes under Ubuntu [message #39645 is a reply to message #39643] Fri, 12 April 2013 09:31 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

deep wrote on Fri, 12 April 2013 09:06

How to find solution for such problems. What will be the source of error when it works OK with one compile mode and gives error like this in other.

This program works when compiled with MinGW32 debug. And gives assertion error in all release modes.(WIN7)

ASSERT macros and messages are only defined in debug mode. In release mode, it should "just crash".

If debug asserts, and in optimal it works, then it might be in any part of code that is wrapped by #define DEBUG or similar. Also, there can be difference in default initialization of variables - in optimized modes, variables can contain random values before first assignment. Have you tried to run the application in debugger and inspect the values of the variables when it crashes?

The screenshot below shows assert in Vector code, which ussualy happens when you try to access item in vector with negative index, or with index bigger than size size of the vector. You should check that in your code. Debugger can help with this too if you look in the stack frames above the one that asserts.

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with TheIDE
Next Topic: expect feature: Selection Highlight
Goto Forum:
  


Current Time: Mon Jun 23 18:34:36 CEST 2025

Total time taken to generate the page: 0.04150 seconds