Bad IL in async method with try/except/finally

Hi Remobjects

Using latest version of Oxygene - 10.0.0.2275

The attached code compiles fine but then throws InvalidProgramException

Note, that if you remove the finally, it’s fine

Alex

Program.pas (608 Bytes)

Thanks, logged as bugs://80006

As a temporary workaround, (I’m fixing this now); creating two try’s instead of 1 try block will fix this.

bugs://80006 got closed with status fixed.