Hi Li,
Thanks for using Syncfusion Products.
We are unable to reproduce the issue at our end.
The problem is caused by a
bug in the language compiler that was used to build the program.
When the invalid code runs,
the JIT compiler detects the error, and then throws a System.InvalidProgramException.
In order to handle this
exception, please do following steps:
1. Provide valid code path that contains valid
instructions.
2. To determine whether your assembly contains invalid
MSIL, run the PEverify tool over the program
3. If the PEverify tool locates invalid MSIL, the
language compiler that you used to build the application probably contains a
bug.
If the PEverify tool does
not locate invalid MSIL, the .NET Framework JIT compiler may contain a bug. Regards,
Karuppasamy C.