We have an application written in another non dot net language that only supports stdcall DLL calls.
In order to call a C# DLL we have written an intermediate c++ dot net dll that exports stdcall functions and then calls the c# dll.
THis is all working fine except for the issue of the first call. The first time we call any functions in the DLL it takes forever to return. Any subsequent call from the same runnin application is immediate. When shutting down the app and running it again it still downs get slow again. Only if we close the app and wait for a long time and then start the app again it will take long again
Both DLL's are very small, ery simple dll's
Any ideas why and how to get around it ? We are talking about 30 seconds or so for the first call
This happens with release built dll's
thanks
Mike