November 15, 2019, 09:01:50 AM

Author Topic: why No crash in debug mode and crash in release mode ?  (Read 133 times)

Offline Hardcoal

  • Sr. Member
  • ****
  • Posts: 298
why No crash in debug mode and crash in release mode ?
« on: November 03, 2019, 05:01:48 PM »
Hi

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

Im using blide editor

Offline col

  • Sr. Member
  • ****
  • Posts: 437
Re: why No crash in debug mode and crash in release mode ?
« Reply #1 on: November 04, 2019, 01:10:39 AM »
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.
To be is to be perceived.

https://github.com/davecamp

Offline Hardcoal

  • Sr. Member
  • ****
  • Posts: 298
Re: why No crash in debug mode and crash in release mode ?
« Reply #2 on: November 04, 2019, 01:44:10 AM »
Thanks, i thought it's something like that

Offline JBR

  • Jr. Member
  • **
  • Posts: 31
Re: why No crash in debug mode and crash in release mode ?
« Reply #3 on: November 04, 2019, 06:53:20 PM »
Pardon my inexperience but how is this avoided?

Jim

Offline col

  • Sr. Member
  • ****
  • Posts: 437
Re: why No crash in debug mode and crash in release mode ?
« Reply #4 on: November 05, 2019, 02:32:02 AM »
@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.
To be is to be perceived.

https://github.com/davecamp

Offline Hardcoal

  • Sr. Member
  • ****
  • Posts: 298
Re: why No crash in debug mode and crash in release mode ?
« Reply #5 on: November 05, 2019, 06:56:28 AM »
Since I solved the problem I think Im Cool :)

Offline col

  • Sr. Member
  • ****
  • Posts: 437
Re: why No crash in debug mode and crash in release mode ?
« Reply #6 on: November 05, 2019, 12:05:32 PM »
@Hardcoal
Haha +1  8)
To be is to be perceived.

https://github.com/davecamp