Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BeforeConnectEvent fix #402

Merged
merged 1 commit into from Dec 1, 2021
Merged

BeforeConnectEvent fix #402

merged 1 commit into from Dec 1, 2021

Conversation

zziger
Copy link
Contributor

@zziger zziger commented Dec 1, 2021

The main problem was in the fact, that pointer of a stack struct was passed. Allocating the struct on heap and then destroying it (and all the strings inside) after the call (even without separate c method call from c#) seems to be working pretty ok for those guys, that had those crashes. FIRE_EVENT data is also destroyed right after the delegate call, so i guess that should be safe enough to do that.

@FabianTerhorst FabianTerhorst merged commit 350bd55 into FabianTerhorst:dev Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants