470,849 Members | 1,440 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

delay calling c# dll from C++ dll

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
Apr 13 '06 #1
0 2542

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

20 posts views Thread by Doug Thews | last post: by
11 posts views Thread by Maheshkumar.R | last post: by
37 posts views Thread by ales | last post: by
4 posts views Thread by FAQ server | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.