Issue with events at compilation

Hi,
I’ve got an issue with rhino event handlers: Everything works fine when I run my project on debug mode, but if I make a release and install it, the events are never raised.
Any idea?
Best regards
Matthieu

HI @Matthieu_from_NAVINN,

We’ll need more details. Obviously event watchers work in Release builds. The sample on GitHub demonstrates this.

https://github.com/mcneel/rhino-developer-samples/tree/6/rhinocommon/cs/SampleCsEventWatcher

– Dale

Hi @dale,
After further investigation, the build method where indeed not the issue. It worked in debug because it targeted my skin with my plugin’s panel already opened, while in release mode I tested it outside of the skin, and the code not finding the panels crashed without reporting.

Fixed with just a few If MyPanel IsNot nothing then ...

Thanks