开发者

DLL response is too slow in Visual Studio

I use a 3rd party DLL in my VB.NET project (VS2005) that responds to slow and give wrong values in debug mode. In run-time mode everything works as expected.

I do understand that there are something going on in the debug mode which makes the DLL communication slow. This b开发者_运维百科ehavior makes it hard to debug the application correctly.

Is there any way to force VS to communicate with the DLL in "run-time" mode during debugging but let the rest of the project be in control of the debugger?


I found a setting that resolved my issue:

Project Properties > Debug > Enable Debuggers > select "Enable unmanaged code debugging".

Now the DLL communication flowed smoothly. The DLL I use is a middleware between my app and a USB device. There is no Debug/Release version of the DLL.


Change the debug DLL for the release one, either by switching files or by telling the linker/build process to only use the release one, but like the comment above I'd suspect there's some funky stuff going on in both.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜