Re: Same code different behaviour in debug & release mode?

2019-05-19 Thread Era Scarecrow via Digitalmars-d-learn
On Sunday, 19 May 2019 at 17:55:10 UTC, Robert M. Münch wrote: It seems that the debugger has quite some problem when the code was compiled with optimization and debug-information. I remember having similar problems in a C program years ago, ended up just releasing the code unoptimized and

Re: Same code different behaviour in debug & release mode?

2019-05-19 Thread Robert M. Münch via Digitalmars-d-learn
On 2019-05-19 16:11:19 +, Robert M. Münch said: I'm wondering why the root and win.layout_root values are not the same? What's happening here? I thought that root is a class reference which uses the same data as win.layout_root. When I compile in debug mode and run the same code, the

Same code different behaviour in debug & release mode?

2019-05-19 Thread Robert M. Münch via Digitalmars-d-learn
I have the following code I compile in release mode but with "debugInfo" bulildOptions in my dub.json: gob root = win.layout_root = new gob(); After executing this code line I see this in the debugger: Name Wert Typ ◢ root 0x00f17deff760 {node=0x7ff629fb {__guard_fids_table} {},