I'm trying to run a compression with a backgroudworker and it's running fine. The Compressor-SDK is giving me a function for calling Status-Callbacks, which works fine too, but without a backgroundworker. When I try to call the function inside the backgroundworker, the backgroundworker tells me it could only run as one thread, then the process is canceled.
How do I call this function inside the BW?
The function I'm trying to call in the backgroundworker:
Public Function SqxCallback(ByVal pParam As IntPtr, ByRef CallbackInfo As SQX_CALLBACKINFO) As Integer
If CallbackInfo.pszSourceFileName IsNot Nothing Then
Me.lblStatusMsg.Text = " compressing... " & CallbackInfo.pszSourceFileName
Me.lblStatusMsg.Refresh()
End If
Me.ProgressSingle.Value = CallbackInfo.iProgress
Return 1
End Function