Login Page - Create Account

Support Board


Date/Time: Mon, 06 Jan 2025 09:53:23 +0000



Post From: Calling a function from an external DLL

[2016-06-01 03:49:20]
User754985 - Posts: 109
I need you support and recommendation on the following strange situation.

My ACSIL study calls a function from a DLL, and I link to it via recommended typedef/LoadLibrary/GetProcessAddress approach at Run time.

I develop on a dedicated i7-6700K server and deploy on a VPS with i7-980, both WinServer 2012R2, SC v1421.

However:
- if I deploy a DLL built on the development server, it works fine on a production one
- if I build the same study on a VPS, it would cause a CPU exception at the instruction calling the function from the DLL (library loaded, handle to a function is obtained)

Several days ago, even the first way would not work,- until I made sure that all VS c++ run-time libraries on both machines are identical, PATH to dependent dlls needed for the DLL with function are correct and same.

But why would a final code - built on another machine -work but the "native" - would not work on a machine it had been built on?

Would really appreciate your hypotheses that i can explore further myself to make it work..