grijjy / JustAddCode

Code snippets from Grijjy's Just Add Code blog
BSD 2-Clause "Simplified" License
138 stars 66 forks source link

EEInvalidOperation in LNG.exe when used with 64-bit ARM MacOS application #14

Open ErwinDenissen opened 3 months ago

ErwinDenissen commented 3 months ago

I have just downloaded the latest version with support for 64-bit ARM MacOS.

LNG raises an exception on executing it from the Build Events -> Commands:

EInvalidOperation: Invalid line number sequence (different line numbers for same address)

I = 42 Length(ALines) = 688646 AddressDelta = 0 LineDelta = -1

erikvanbilsen commented 3 months ago

@ErwinDenissen I don't have an ARM Mac yet, so I cannot test any solution. The changes I made were suggested by someone else. Could you comment out the LineDelta check (lines 197/198 in Generator.pas) and check if that solves the issue but still provides line number information when there is an exception in your app. Thank you!