double.NaN leads to errors
See original GitHub issueSteps to reproduce:
Hello together 😃 When adding double.NaN or 0.0/0.0 anywhere in the I my Code (target framework 4.7.2) I get the error message below. I tried checking and unchecking the “Single + Double inf”- and “-nan(ind)” checkboxes in the DllExport GUI but it did not help. I can get it to compile by using your IL assembler but when doing this I loose the ability to debug my code (no breakpoints are working anymore). The same issue appears for ±Inf too. Can you please help me how to fix this? Thanks!
DllExport -version
: 1.7.3- Used Visual Studio 2019 v16.7.5
Information from Data
tab or log data:
1>C:\test\packages\DllExport.1.7.3\tools\net.r_eg.DllExport.targets(76,5): error : C:\test\test_project\test.cs(123) : error : syntax error at token ‘-’ in: IL_0029: ldc.r8 -nan(ind)
Demo Project files / Samples / etc.:
. . .
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
Hello @3F I have tested your fix as requested and my project now compiles perfectly fine. Thank you very much! I hope, that you had some nice christmas celebration and are going to have a good start in a better year 2021 😃
Hello @3F, thanks for the quick reply! Sadly I can not use your IL assembler as this prevents me from debugging my code (breakpoints do not trigger). However I will try your suggestion to use an exported function that creates NaN values or stay with my current workaround where I just use -666.6 instead of NaN as this will suit me fine to visually see invalid values. Don’t hurry and get well soon! 😃 Thanks for this great piece of software! I do not know how I could create my programs without it!