Search found 15 matches
- 16 Jan 2025, 12:50
- Forum: General Discussion
- Replies: 3
- Views: 1825
Re: DynamicTextureSource crash in callback after deletion
Sure. Ticked has been created:
https://www.noesisengine.com/bugs/view.php?id=3906
Is there a chance that crash will not occur in 3.2.7 version? Or some workaround already exists maybe?
https://www.noesisengine.com/bugs/view.php?id=3906
Is there a chance that crash will not occur in 3.2.7 version? Or some workaround already exists maybe?
- 15 Jan 2025, 11:56
- Forum: General Discussion
- Replies: 3
- Views: 1825
DynamicTextureSource crash in callback after deletion
Hello, We're using class inherited from DynamicTextureSource with callback on texture rendering. Problem is after this class deletion callback can still be called with garbage pointer inside second parameter. What's right procedure of deletion such classes with proper callback call cancellation? Cod...
- 03 Jan 2025, 08:33
- Forum: General Discussion
- Replies: 11
- Views: 15579
Re: "Insufficient buffer size" while making delegate
The problem with your last code is that the method signature does not match the event handler. This should work: void OnScrollChanged(Noesis::BaseComponent* sender, const Noesis::ScrollChangedEventArgs& e) {} You're right, it's my bad. Just not paid attention to method parameters. Thank you for...
- 26 Dec 2024, 18:26
- Forum: General Discussion
- Replies: 11
- Views: 15579
Re: "Insufficient buffer size" while making delegate
Sorry for a long answer. I've tried this, and got same error: class VM_Base : public NoesisApp::NotifyPropertyChangedBase { public: VM_Base() {} }; class MyClass : public VM_Base { MyClass() { viewer->ScrollChanged() += Noesis::MakeDelegate(this, &MyClass::OnScrollChanged); } void OnScrollChange...
- 18 Dec 2024, 20:49
- Forum: General Discussion
- Replies: 11
- Views: 15579
Re: "Insufficient buffer size" while making delegate
This class inherits this VM_Base class that inherits NoesisApp::NotifyPropertyChangedBase. Also, we're used already MakeDelegate inside same class and everything worked like a charm. This call is only problem place actually class VM_Base : public NoesisApp::NotifyPropertyChangedBase { public: VM_Bas...
- 18 Dec 2024, 18:41
- Forum: General Discussion
- Replies: 11
- Views: 15579
Re: "Insufficient buffer size" while making delegate
Sorry, ofcourse I meant ScrollChanged and confused events when wrote code by memory ) Here's parts of code which related to topic: bool MYNAMESPACE::MyClass::ScrollToExactPosition(int rowToScroll, int elementToOpen) { Noesis::VirtualizingStackPanel* panel = m_scroll->GetTemplateChild<Noesis::Virtual...
- 18 Dec 2024, 02:11
- Forum: General Discussion
- Replies: 11
- Views: 15579
Re: "Insufficient buffer size" while making delegate
Also, to not create new topic: I want to scroll content a bit after ScrollChanged delegate will called. If I call ScrollToVerticalOffset inside this delegate, it called recursively. So I call myScroll->StatusChanged() -= delegate; right before ScrollToVerticalOffset to not call this delegate on my s...
- 18 Dec 2024, 00:47
- Forum: General Discussion
- Replies: 11
- Views: 15579
"Insufficient buffer size" while making delegate
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: myScroll->StatusChanged() += [](Noesis::BaseObject* sender, const Noesis::ScrollChangedEventArgs&) {dosomething();}; But if I want to make it ...
- 13 Dec 2024, 00:59
- Forum: General Discussion
- Replies: 5
- Views: 8362
Re: How to properly get element inside ControlTemplate in Native code
Yes, it works.
For now I can't do this right after adding all elements to the scrollviewer (seems they're not generated at the moment), but it's another story.
Thanks!
For now I can't do this right after adding all elements to the scrollviewer (seems they're not generated at the moment), but it's another story.
Thanks!
- 11 Dec 2024, 14:10
- Forum: General Discussion
- Replies: 5
- Views: 8362
Re: How to properly get element inside ControlTemplate in Native code
Yeah, seems it works. What about second question? I've tried to call ScrollViewer::ScrollToBottom for virtualized ScrollView, and it scrolled not to bottom but seems to bottom part of current chunk that loaded at the moment. Is it possible to scroll it to the real end (or to exact place) of such Scr...