Visual studio 2015 throw FatalExecutionEngineError After PrintEngine.Initialize()

Issues related to label design (working with databases, data processing, RFID encoding etc.) and printing (from NiceLabel Express, NiceLabel Pro, NiceForm and NicePrint)

Moderators: Georges, milos, NiceLabel Support Team

Post Reply
Denny
Enthusiast
Posts: 15
Joined: Mon Dec 25, 2017 8:53 am

Visual studio 2015 throw FatalExecutionEngineError After PrintEngine.Initialize()

Post by Denny » Tue Feb 19, 2019 4:11 am

Hi Experts,

Now I am encountering a problem for Nicelabel 2017. When I debugger Nicelabel 2017 sample code, After PrintEngine is initialized, the Visual studio 2015 throws "FatalExecutionEngineError".
Below are the details for the error. Dose anyone can shed me some lights on it?

Thanks.

Managed Debugging Assistant 'FatalExecutionEngineError' has detected a problem in 'D:\NiceLabelSDK2017.1.0.1102\GetLabelPreviewSample\bin\Debug\SDK.GetLabelPreviewSample.vshost.exe'.

Additional information: The runtime has encountered a fatal error. The address of the error was at 0x72e49f70, on thread 0x3d90. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.

User avatar
dado
NiceLabel Development
NiceLabel Development
Posts: 691
Joined: Tue Sep 12, 2006 12:50 pm
Location: Kranj, Slovenia
Contact:

Re: Visual studio 2015 throw FatalExecutionEngineError After PrintEngine.Initialize()

Post by dado » Tue Feb 19, 2019 3:53 pm

Hi there

Can you try this on any other computer that has Visual Studio....
I tested the same sample connected to the SDK 19.0.0.3753 and it works. I used a computer with Visual Studio 2015 version 14.0.25431.01 Update 3 which has installed .NET Framework 4.7.02053.

Regards, Damjan

Denny
Enthusiast
Posts: 15
Joined: Mon Dec 25, 2017 8:53 am

Re: Visual studio 2015 throw FatalExecutionEngineError After PrintEngine.Initialize()

Post by Denny » Wed Feb 20, 2019 4:34 am

Hi Damjan,

It works in other computer. It should be a environment problem for me, but I can't figure out what caused this problem.
Do you have any idea about this?

Thanks.

User avatar
dado
NiceLabel Development
NiceLabel Development
Posts: 691
Joined: Tue Sep 12, 2006 12:50 pm
Location: Kranj, Slovenia
Contact:

Re: Visual studio 2015 throw FatalExecutionEngineError After PrintEngine.Initialize()

Post by dado » Wed Feb 20, 2019 6:47 am

I would upgrade Visual Studio or upgrade .NET Framework.

The 'FatalExecutionEngineError' is caused by a bug in the compiler. If you search for the issues on the internet they are always caused by compiler errors.

Currently I have no other suggestions :|

Regards, Damjan

Post Reply