I wish all of you a happy new year.
But, because of work never ends, I need your help on the following problem :
I am trying to put together a DLL with a client program accessing it.
- In the DLL :
I am creating a Juce-component which contains a few subcomponents.
At the Dllmain() function, I initialize the Juce-GUI.
After that, I am calling an DLL-exporting function from the client program, which is creating the DLL-Juce component and is returning to the client program a component* pointer.
- In the client program :
After the getComponent() function was returned, I use the addChildComponent(Comp) function to add the DLL-juce component to the client gui.
It seems to work as I can expected, until it mets the parentHierarchyChanged() function inside the Component::internalHierarchyChanged(). At this point I am getting an exception that the local this pointer contains an unexpected value (actualy the 0xfffffffffffe value).
I spent many hours but I did not understand where is the problem’s root.
Any help will be much apreciated.
Thanks in advance