I migrated several DLLs and an application from Embarcadero C++ Builder XE to C++ Builder 10.1 Berlin.
Now when my DLL (which contains forms) gets loaded by the application, I get
EOutofResources "Das angegebene übergeordnete Element ist kein übergeordnetes Element von '%s'"
in TApplication::CreateHandle
After searching for hours, I found no one with the same error, not even the english translation. I would translate it as "The specified parent element is not a parent element of '%s'".
My stacktrace:
When I set breakpoints in my DLL's code, none are triggered, so I am not sure why there is even a call to the TApplication constructor (there IS one in my code, but it doesn't seem to be called).
I suspect some issue with dependencies, so I used dependency walker and it found two 64-bit dlls. Not sure if this is a false positive:
What can I do to fix or diagnose this further?
I tried starting a new VCL type project to see if there were differences in the project setup, and lo and behold:
The newly created project has an element
FrameworkType
set toVCL
. My migrated project had this set toNone
. After changing this toVCL
, the error went away.