-
- noesis_user
- Posts: 14
- Joined:
Crash on button click in plugin dll
Hello,
We have a plugin architecture for that we are adding plugin xaml root to mainwindow xaml. The plugin root is sent to plugin dll to access its components and events.
At core side:
At Plugin dll:
Now it gets valid button pointer n all but when we click on that it crashes in MouseButtonUp event in Noesis.dll (renderer). What could lead this crash?
Thanks.
We have a plugin architecture for that we are adding plugin xaml root to mainwindow xaml. The plugin root is sent to plugin dll to access its components and events.
At core side:
Code: Select all
Noesis::Gui::FrameworkElement* main_root = (Noesis::Gui::FrameworkElement*)(mUIRoot);
Noesis::Core::Ptr<Noesis::Gui::FrameworkElement> root =
Noesis::Gui::LoadXaml<Noesis::Gui::FrameworkElement>(xaml_filename.c_str());
panel->GetChildren()->Add((Noesis::Core::BaseComponent*) root.GetPtr());
renderFrame();
//Passing plugin xaml root to plugin dll
_plugin->setGuiRoot((Noesis::Core::BaseComponent*) root.GetPtr());
Code: Select all
Noesis::Gui::FrameworkElement* p1_root = (Noesis::Gui::FrameworkElement*)root_;
Noesis::Gui::RadioButton* expand_patient_list_button = NsStaticCast<RadioButton*>
(p1_root>FindName("RadioExpandCaseLoader"));
expand_patient_list_button->Click() += MakeDelegate(this,&SetCaseLoaderGui::OnExpandPatientListButtonClicked);
Thanks.
-
-
sfernandez
Site Admin
- Posts: 3222
- Joined:
Re: Crash on button click in plugin dll
I don't see anything wrong in your code.
Could you please provide a bit more information? What kind of crash are you getting? Could you attach a crash dump?
Could you please provide a bit more information? What kind of crash are you getting? Could you attach a crash dump?
-
-
sfernandez
Site Admin
- Posts: 3222
- Joined:
Re: Crash on button click in plugin dll
Have you managed to reproduce this issue again?
Can you provide a sample so we can fix it?
Can you provide a sample so we can fix it?
-
- noesis_user
- Posts: 14
- Joined:
Re: Crash on button click in plugin dll
Fixed this !!
Plugin object was getting destroyed before it could use it so was the crash.
Plugin object was getting destroyed before it could use it so was the crash.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest