views:

55

answers:

1

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?

A: 

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

Beth