So, have you run the code in the debugger?
Stack traces and current value(s) of key variables provide a lot more information than "it crashes".
I have run into debugger, in this case, I have not more info, backtrace, locale variables, ... all is normal or no usable.
It's the unique case where debugger not help me.
Does your object instance still exist?
> static_cast<TransferThreadAsync *>(lpData)->setProgression(TotalBytesTransferred.QuadPart);
In other words, make an otherwise empty callback which just returns PROGRESS_CONTINUE;
Consider tracing the dtor to see if the instance goes away before you've finished invoking callbacks.
Last edited on
Was just missing: CALLBACK keyword