Skip to content

Release of invalid GC handle. The handle is from a previous domain. The release operation is skipped. #209

Answered by StephenHodgson
tunyawat asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tunyawat. I'll need better steps to reproduce this issue you're running into.

It sounds like maybe are reloading the domain or entering and exiting from play mode but not cancelling your previous sessions call.

You should also be passing a cancellation token source. You can create your own or use GameObject.destroyCancellationToken

var response = await api.ChatEndpoint.GetCompletionAsync(chatRequest, destroyCancellationToken);

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by StephenHodgson
Comment options

You must be logged in to vote
1 reply
@tunyawat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #208 on March 14, 2024 13:57.