我有一个非托管dll在IIS 7上运行的asp.net上运行。大多数时间在几个请求后,应用程序挂起大约一分钟,然后继续或显示错误。 我是否必须处置,释放或调用DLL不同?非托管dll,挂起/等待/慢
[DllImport("Fan.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi, SetLastError = true, ExactSpelling = true)]
public static extern int GET_CALCULATION_FAN_ALONE_PC(ref string input, string buffer);
任何帮助将不胜感激!
'GET_CALCULATION_FAN_ALONE_PC'线程安全的实现吗? – vcsjones
静态时DLL导入是线程安全的http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.dllimportattribute%28v=vs.71%29.aspx –