App does not open on some machines using C# DLL

Good morning, using this resource, I was able to create DLLs made in C# to use in Clarion.
Tests Ok, production Ok, but on some machines the Clarion APP simply does not open. It seems that the dlls are linking and an error occurs that is not shown.

Scenario is the C# DLL, which just does an internet connection test.
This C# DLL is called by a Clarion DLL and this Clarion DLL is linked with a normal Clarion App.

I’m trying to map where is the possible problem that may be breaking. But it’s hard to know if the problem is in the linking of the DLLs or if it’s a Windows issue.

Have you tested whether you have installed the C# Runtimes?
Couldn’t that be it?

I didn’t do that check. I’ll see it now.

Before that, I went through the windows error logs, found this, but haven’t done a detailed analysis yet

Yes, C# Runtimes installed. On the machine that is experiencing this problem, I run other applications that are .NET. Doing other tests, the Clarion APP calling directly the DLL made in C# works OK. But APP Clarion, calling a Clarion DLL, and that Clarion DLL calling the C# DLL that causes the problem. Confusing yes, I know…

1 Like

Put OutputDebugString calls before / after critical points like calling external functions, internet connection attempt and so on.