Skip to content

Lifetime of objects provided in async callbacks in win32 #5139

Closed Answered by FatalCatharsis
FatalCatharsis asked this question in Q&A
Discussion options

You must be logged in to vote

I apologize, I took another look at my code and I was calling AddRef on the handler object vtable and not the parameter passed to the handler. That was the problem, when I incremented the AddRef on the object passed to the handler, it continued living and functioning outside the callback. Sorry for the trouble.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by FatalCatharsis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant