"Insufficient buffer size" while making delegate
Posted: 18 Dec 2024, 00:47
Hello!
I'm trying to create delegate and attach it to ScrollChanged event in my ScrollViewer. It works OK if I doing it with lambda, something like this:
But if I want to make it with delegate
then get static assert "Insufficient buffer size" in MakeDelegate function.
How it can be solved?
I'm using Noesis 3.2.6
Thank you!
I'm trying to create delegate and attach it to ScrollChanged event in my ScrollViewer. It works OK if I doing it with lambda, something like this:
Code: Select all
myScroll->StatusChanged() += [](Noesis::BaseObject* sender, const Noesis::ScrollChangedEventArgs&) {dosomething();};Code: Select all
Noesis::ScrollChangedEventHandler delegate = Noesis::MakeDelegate(this, &MyClass::OnScrollChanged);
myScroll->ScrollChanged() += delegate;
How it can be solved?
I'm using Noesis 3.2.6
Thank you!