slint::invoke_from_event_loop SegFault (C++) #2365
-
Hello! I'm calling a function in a thread that gets the I narrowed it down to the Is this because the
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Probably. |
Beta Was this translation helpful? Give feedback.
-
Wrong Lines:
Correct Solution: I was not passing
Thanks again for staying with me! |
Beta Was this translation helpful? Give feedback.
lock()
returned astd::optional<slint::ComponentHandle<HelloWorld>>
which my function could not been called from (Member does not exist)lock().__get()
returned the correctslint::ComponentHandle<HelloWorld>
which I could call my function from, yet it terminated the app, wanting me to call the function fromslint::invoke_from_event_loop
(dispite I did call by it)Wrong Lines:
Correct Solution: I was not passing
AppHandle
in the lambdas capture clause