Custom Plugin Preview Error
AnsweredCustom plugin for reading CAN messages. When the plugin is used inside of Kanzi Studio the preview crashes on message received but when I run the exe file I dont have any problems.
On crash sometimes I get a popup with an error but more often Kanzi Studio is closed without any messages in the log.
-
This assertion indicates that a ResourceManager functionality is triggered on a worker thread instead of Kanzi's main thread. Kanzi API is not thread safe and should not be called from other threads. Instead, you can submit a task to main thread using TaskDispatcher::submit function. It could be that message received handler is running on a worker thread and it creates or acquires a resource.
Assertions are only triggered on debug builds so I assume you are running debug configuration of Preview. If you are only running the release build of the application executable, that might explain why it is only triggered on Preview and not on executable.0
Please sign in to leave a comment.
Comments
1 comment