Crash on RegisterProperty<Noesis::Vector2f>
Posted: 28 Nov 2017, 13:40
Hi,
I'm trying to create a Vector2f DependencyProperty. I already have multiple working DependencyProperties, for example also a Vector3f one which you can see below ("CurrentPos"). Those all work.
But the call to register the Vector2f DependencyProperty called "Size" just crashes with the following stack trace (Unhandled exception at 0x00007FFBBAD278D0 (Noesis.dll) in EnscapeClient.exe: Fatal program exit requested.):
Does anyone have an idea what going wrong here? Could this be a Noesis bug? I really don't understand why it works for Vector3f, but not for Vector2f.
Kind regards,
Jan
I'm trying to create a Vector2f DependencyProperty. I already have multiple working DependencyProperties, for example also a Vector3f one which you can see below ("CurrentPos"). Those all work.
Code: Select all
data->RegisterProperty<Noesis::Vector3f>(CurrentPosProperty, "CurrentPos", Noesis::FrameworkPropertyMetadata::Create<Noesis::Vector3f>(Noesis::Vector3f::Zero(), Noesis::FrameworkOptions_None));
data->RegisterProperty<Noesis::Vector2f>(SizeProperty, "Size", Noesis::FrameworkPropertyMetadata::Create<Noesis::Vector2f>(Noesis::Vector2f::Zero(), Noesis::FrameworkOptions_None));
Code: Select all
Noesis.dll!00007ffbbad278d0() Unknown No symbols loaded.
Noesis.dll!00007ffbbaa35192() Unknown No symbols loaded.
Noesis.dll!00007ffbbaa3c8e8() Unknown No symbols loaded.
Enscape.dll!Noesis::Core::Boxed<Noesis::Math::Vector2<float> >::StaticGetClassType(Noesis::Core::T2T<Noesis::Core::Boxed<Noesis::Math::Vector2<float> > > * __formal) Line 95 C++ Symbols loaded.
Enscape.dll!Noesis::Core::Reflection::DynamicCast::Apply<Noesis::Core::Boxed<Noesis::Math::Vector2<float> >,Noesis::Core::BaseComponent>(Noesis::Core::BaseComponent * ptr) Line 53 C++ Symbols loaded.
Enscape.dll!Noesis::Core::Reflection::InternalDynamicCast<Noesis::Core::Boxed<Noesis::Math::Vector2<float> >,Noesis::Core::BaseComponent>(Noesis::Core::BaseComponent * ptr, Noesis::Core::Int2Type<0> __formal) Line 66 C++ Symbols loaded.
Enscape.dll!NsDynamicCast<Noesis::Core::Boxed<Noesis::Math::Vector2<float> > * __ptr64,Noesis::Core::BaseComponent * __ptr64>(Noesis::Core::BaseComponent * ptr) Line 100 C++ Symbols loaded.
Enscape.dll!Noesis::Gui::BoxingUtils::CheckType<Noesis::Math::Vector2<float> >(const Noesis::Core::Ptr<Noesis::Core::BaseComponent> & value, const Noesis::Core::Type * __formal, Noesis::Core::Int2Type<0> __formal) Line 57 C++ Symbols loaded.
Enscape.dll!Noesis::Gui::BoxingUtils::CheckType<Noesis::Math::Vector2<float> >(const Noesis::Core::Ptr<Noesis::Core::BaseComponent> & value, const Noesis::Core::Type * type) Line 77 C++ Symbols loaded.
Enscape.dll!Noesis::Gui::DependencyData::CheckMetadata<Noesis::Math::Vector2<float> >(Noesis::Gui::PropertyMetadata * metadata) Line 237 C++ Symbols loaded.
Enscape.dll!Noesis::Gui::DependencyData::RegisterProperty<Noesis::Math::Vector2<float> >(const Noesis::Gui::DependencyProperty * & dp, const char * name, const Noesis::Core::Ptr<Noesis::Gui::PropertyMetadata> & metadata, Noesis::Gui::PropertyAccess access, const Noesis::Core::Delegate<bool __cdecl(void const *)> & validate) Line 75 C++ Symbols loaded.
Enscape.dll!Noesis::Gui::DependencyData::RegisterProperty<Noesis::Math::Vector2<float> >(const Noesis::Gui::DependencyProperty * & dp, const char * name, const Noesis::Core::Ptr<Noesis::Gui::PropertyMetadata> & metadata) Line 24 C++ Symbols loaded.
> Enscape.dll!EnscapeUiDescription::MiniMapControl::StaticFillClassType<void>(Noesis::Core::TypeClassCreator & helper) Line 57 C++ Symbols loaded.
Kind regards,
Jan