InvalidProgramException when using : (colon) within Task method with await’s

IDE: VS2015
Version: 8.3.95.2031
Target
Description:
See attached Program.pas file

Expected Behavior:

Actual Behavior:

Steps:
Compile and run, you should get
System.InvalidProgramException: Common Language Runtime detected an invalid program.

Program.pas (1.1 KB)

Alex

Thanks, logged as bugs://76189

Hi,

can you try the 8.4 betas? I can’t reproduce this with latest.

bugs://76189 got closed with status cannotrepro.

Hi,
Finally got a chance to test this using latest beta 8.4.96.2045 and it is no longer an issue, but it’s definitely a issue in current release 8.3.95.2031

1 Like

Hi
Seems a variation of this bug is present in current compiler 9.2.101.2181, but this time only effects usage of colon with a sequence. Attached is example
Program.pas (823 Bytes)

Also wondering if there has been any progress on the issue with not being able to Reference an Oxygene project in a csproj project using VS2017, I know it’s something in the csharp VsProject object, but were you able to determine what it didn’t like or is it an issue in the latest csproj.dll that’s blocking you?

Thanks, logged as bugs://78498

Hello Alex,

We didn’t fix the issue but you can use next workaround:
Open the .csproj file in any text editor and add next block to it:

<ItemGroup>
    <ProjectReference Include="..\ClassLibrary1\ClassLibrary1.elements">
      <Project>{1682b493-26d3-477f-8b22-ea2bd8011829}</Project>
      <Name>ClassLibrary1</Name>
    </ProjectReference>
  </ItemGroup>

Change the path into proper path for your oxygene project, and the guid is a ProjectGuid property from the Oxygene project. Than reload the solution in VS2017. It gives you working CC and the project will compile too.
We will let you know when we have proper fix for your issue.

Best regards.

Hi viktoriad
Thanks for reply.
I had already used your suggestion but I was hitting the issue in an IDE SDK project that manipulates the projects through the COM interfaces and I guess I’m also experiencing the same problem you are. Would be interested if you manage to find a solution

Alex

bugs://78498 got closed with status fixed.

Logged as bugs://i64106.

bugs://i64106 was closed as unable to reproduce.