question

Asif-1234 avatar image
0 Votes"
Asif-1234 asked DanielZhang-MSFT commented

The sample code that comes with microsoft pos for .net 1.14.1 (c#) do not work for barkell Avery berkel fx110 scale on vs 2019 on windows 10

We are working on a Point of Sale, We are integrating Avery berkel fx120 scale to our POS. The test app that comes with Microsoft Point of Service for .NET v1.14 (POS for .NET) is working fine with the scale, but the sample code that comes with is not working with Avery berkel fx120 scale. When we try to open scale on scale.opn() it throughs some clr exception. I am using visual studio 2019 community (c#) on windows 10. Have any body any idea in this environment or can give a sample code only for the Avery berkel fx120 scale.98810-scaleissue.png

When I try to See the details for the exception it gives me the following :
Managed Debugging Assistant 'FatalExecutionEngineError'
Message=Managed Debugging Assistant 'FatalExecutionEngineError' : 'The runtime has encountered a fatal error. The address of the error was at 0x0920c0f6, on thread 0x36e4. The error code is 0x80131623. 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.'

dotnet-csharp
scaleissue.png (228.6 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

When uncheck for the exception "break program" for that exception it gives men the next exception
98949-scaleissuenew.png



0 Votes 0 ·
scaleissuenew.png (163.1 KiB)

Hi anonymous user-1234,
Based on your description and error message, we cannot determine the specific reason, please provide the relevant code.
And you can also try to build your application in x86 mode as Viorel-1 saied.
Best Regards,
Daniel Zhang

0 Votes 0 ·

Did you try to go to Project Properties and check or uncheck the “Prefer 32-bit” option in Build tab?



0 Votes 0 ·

0 Answers