Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to access TimeSpan.TotalHours gives Common Language Runtime detected an invalid program. #111

Open
MauriceCalvert opened this issue Mar 27, 2024 · 0 comments

Comments

@MauriceCalvert
Copy link

Using the expression engine, I add these variables and formulas:

variable "startTimestamp" = "2023-04-01 09:03:25"
variable "endTimestamp" = "2023-04-01 09:34:54"
variable "startlat" = 461706632
variable "startlong" = 61615299
formula "Duration" = "endtimestamp-starttimestamp"
formula "Hours" = "Duration.TotalHours"
formula "StartLatitude" = "startlat/10000000.0"
formula "StartLongitude" = "startlong/10000000.0"

Recalculate throws Exception thrown: 'System.InvalidProgramException' in Flee.dll

The other formulas work as expected:
image

I've tried "Duration.TotalHours()", same result.

Suggestions to fix this would be welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant