Same code different behaviour in debug & release mode?

Robert M. Münch robert.muench at saphirion.com
Sun May 19 17:55:10 UTC 2019


On 2019-05-19 16:11:19 +0000, 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 values are the same.

It seems that the debugger has quite some problem when the code was 
compiled with optimization and debug-information.

When avoiding optimization, things seems to work.

-- 
Robert M. Münch
http://www.saphirion.com
smarter | better | faster
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20190519/463f0829/attachment.html>


More information about the Digitalmars-d-learn mailing list