Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Catch panics in callbacks #187

Closed
Stebalien opened this issue Nov 5, 2015 · 1 comment
Closed

Catch panics in callbacks #187

Stebalien opened this issue Nov 5, 2015 · 1 comment

Comments

@Stebalien
Copy link

Panicing into C code is undefined behavior but gtk-rs doesn't currently handle panics in callbacks. Until catch_panic (or recover or whatever it ends up being called) is stabalized, gtk-rs should probably just abort on panic (using a destructor bomb).

@gkoz
Copy link
Member

gkoz commented Nov 5, 2015

Thanks, yeah a destructor bomb seems like a decent idea.

@gkoz gkoz mentioned this issue Nov 18, 2015
EPashkin pushed a commit to EPashkin/gtk that referenced this issue Apr 18, 2016
Don't drop TreeIter created by wrap_pointer
alex179ohm pushed a commit to alex179ohm/gtk that referenced this issue Oct 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants