why No crash in debug mode and crash in release mode ?

Started by Hardcoal, November 03, 2019, 17:01:48

Previous topic - Next topic

Hardcoal

Hi

How come when i run something on release it crashes
And same thing on debug mode does not crash?

Im using blide editor
Code

col

This can happen because the debugger will use a reference to an object which can cause a 'delayed collection' if any. This doesn't happen in release builds so the offending object(s) will be collected earlier.
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."

Hardcoal

Code

JBR

Pardon my inexperience but how is this avoided?

Jim

col

@JBR

Dare I say it?... better code... as in 'non-complicated' code.

From what I remember Hardcoals project is quite big so some level of complication can always creep in when developing larger code bases. One of the arts of programming is that no matter how large the project becomes always keep everything simple, clean and as easy to follow as possible.
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."

Hardcoal

#5
Since I solved the problem I think Im Cool :)
Code

col

https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."