mousewheel message crashing
Hey everyone, does anyone have a quick idea why my min external would crash, once I add the mousewheel
message to my class?
c74::min::message<> mousewheel { this, "mousewheel",
MIN_FUNCTION {
return {};
}
};
These are the last callstack entries on the crash, so as you can see it crashes in c74::min::wrapper_method_generic (), which is right before the callback on my message object should get called:
Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 com.cycling74.myexternal 0x0000000131966ff0 void c74::min::wrapper_method_generic<myexternal>(c74::max::object*, c74::max::symbol const*, long, c74::max::atom const*) + 288 (c74_min_object_wrapper.h:365)
1 com.cycling74.Max 0x000000010ba04371 BoxComponent::sendMouseWheelMessage(juce::MouseEvent const&, double, double) + 401
2 com.cycling74.Max 0x000000010c046cda juce::Component::internalMouseWheel(juce::MouseInputSource, juce::Point<float>, juce::Time, juce::MouseWheelDetails const&) + 346
All other mouse messages work just fine, only mousewheel instantly crashes the external once it's called.
Is there a trick to using the mousewheel message that's not obvious?
//Edit: I tried just adding the mousewheel message to the min.meter~ example project. Same result, it just immediately crashes the min.meter~ external, once it's called.
So, after a lot of help from the community on Discord, it turned out, that the mousewheel message was just not implemented.
So I've done it.
And created a PR for it here:
https://github.com/Cycling74/min-api/pull/193
No idea if that makes it into min, but it's working on my end, so if you need it, there you go :)