Using the .NET BackgroundWorker from VB6 fails with an AccessViolationException

痞子三分冷 提交于 2019-11-27 04:48:38

问题


The following MSDN example promises to demonstrate how to use the .NET BackgroundWorker from VB6 but it fails with an AccessViolationException. The only workaround is to compile the VB6 code as P-code, but that is not a viable option for us.

http://msdn.microsoft.com/en-us/library/aa719109(VS.71).aspx

Here are lots of details of the problem.

objectmix.com/dotnet/331152-using-background-threads-visual-basic-6-accessviolationexcep.html

How can I fix the example to work without compiling the VB6 code as P-code?


回答1:


I contacted Microsoft Tech Support and the official answer is that it is not possible. That example is going to be pulled from MSDN.



来源:https://stackoverflow.com/questions/2785169/using-the-net-backgroundworker-from-vb6-fails-with-an-accessviolationexception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!