Hi
Today we are working with the COM objects from within .NET (version 4.6-4.8).
Since customers are reporting some performance issues (where 'starting' the COM object suddenly takes 15 seconds and longer), we wanted to explore the possibility of using ucall directly with DllImport.
However, we stumble upon issues and the documentation is actually not giving any details on this
The call is currently
UnifaceVM.UECREATE(1, IntPtr.Zero, "C:\Temp\uniface.asn /ini=C:\Temp\uniface.ini", "C:\Temp\uniface.asn", "", "C:\Temp", _environment)
However, when hitting the line, the application just crashes and stops. We can't find any log written anywhere at all. So, we adjusted the call to included the /log statement, specifying a path to write the logs to. And also specify the asn with the /asn options (both should work it seems, but they don't)
UnifaceVM.UECREATE(1, IntPtr.Zero, "/asn=C:\Temp\unifacert.asn /ini=C:\Temp\unifacert.ini /log=C:\Temp\log.txt", "C:\Temp\uniface.asn", "", "C:\Temp", _environment)
We also tried any other option, like not specifying the INI file, not specifying the asn filename separately... but all with the same behaviour. In the system PATH variable, we included the uniface bin folder and this was necessary as without it, it actually threw an exception about not finding other files required. But once that issue was resolved, we keep on having crashes and nowhere a log file written.
Anyone with some tips on this topic? We would really like to get this to work in order to do some tests on stability and performance.
------------------------------
Nico Degraef
Rocket Forum Shared Account
------------------------------