|
|
Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » GeoFun crashes under Ubuntu
|
|
|
Re: GeoFun crashes under Ubuntu [message #39643 is a reply to message #39637] |
Fri, 12 April 2013 09:06 |
|
deep
Messages: 263 Registered: July 2011 Location: Bangalore
|
Experienced Member |
|
|
Hi,
BioBytes wrote on Fri, 12 April 2013 00:10 | I tried again to compile GeoFun and got the assert error message only under debug mode. When the project is compiled using the optimal mode, all is working perfectly.
|
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)
Warm Regards
Deepak
[Updated on: Fri, 12 April 2013 09:07] Report message to a moderator
|
|
|
Re: GeoFun crashes under Ubuntu [message #39645 is a reply to message #39643] |
Fri, 12 April 2013 09:31 |
|
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
|
|
|
|
|
|
Goto Forum:
Current Time: Sun May 19 16:19:34 CEST 2024
Total time taken to generate the page: 0.01867 seconds
|
|
|