Use of .Net Components result in error
Posted: Wed Nov 23, 2022 2:17 am
We are trying to use a .Net component to determine the file encoding of files we have to process.
We tried two components:
1. https://gist.github.com/TaoK/945127?per ... id=3448173
2. https://github.com/khalidsalomao/SimpleHelpers.Net
Both components work fine when we use it in a simple C# console app, but when we register it in the Lansa repository under ".Net Components" and try to use it in a reusable part we get errors like (with a large file and large sample size):
-----------------------------------------------------------------------
Message : Error invoking method <DetectTextFileEncoding>. Exception Details: Exception has been thrown by the target of an invocation. ---- RuntimeMethodHandle::InvokeMethod ---- Exception of type 'System.OutOfMemoryException' was thrown.
Routine : File LpNetDnpClrInstance at line 774.
-----------------------------------------------------------------------
for the first component and errors like:
-----------------------------------------------------------------------
Message : (0885) - Access violation (exception code c0000005) at address 6FEC4750 should be reported to your product vendor as soon as possible by supplying the files X_ERR.LOG and X_RUN.DMP in directory E:\lansa\tmp\.
Routine : X_RUN
-----------------------------------------------------------------------
for the second component.
Does somebody has a clue why Lansa throws these errors?
We tried two components:
1. https://gist.github.com/TaoK/945127?per ... id=3448173
2. https://github.com/khalidsalomao/SimpleHelpers.Net
Both components work fine when we use it in a simple C# console app, but when we register it in the Lansa repository under ".Net Components" and try to use it in a reusable part we get errors like (with a large file and large sample size):
-----------------------------------------------------------------------
Message : Error invoking method <DetectTextFileEncoding>. Exception Details: Exception has been thrown by the target of an invocation. ---- RuntimeMethodHandle::InvokeMethod ---- Exception of type 'System.OutOfMemoryException' was thrown.
Routine : File LpNetDnpClrInstance at line 774.
-----------------------------------------------------------------------
for the first component and errors like:
-----------------------------------------------------------------------
Message : (0885) - Access violation (exception code c0000005) at address 6FEC4750 should be reported to your product vendor as soon as possible by supplying the files X_ERR.LOG and X_RUN.DMP in directory E:\lansa\tmp\.
Routine : X_RUN
-----------------------------------------------------------------------
for the second component.
Does somebody has a clue why Lansa throws these errors?