Compiler optimizes out GetKeys of TDictionary<> FNC JSON save fails

I believe this to be a defect in WebCore due to compiler optimization in release mode. It affects FNC Core JSON when it tries to save a generic dictionary.
This only occurs in Release. if you remove optimization the bug goes away.

Possibly if some dummy code is added in the Persistence unit the compiler would not eliminate this.

Minimal sample: (6.5 KB)

Thanks in advance
Neil Laskowski


We fixed this here as well, it was indeed an optimization issue. Thanks for the feedback.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.