I'm getting a 'Scope class TBindSourceAdapterCustomScope not registered'. exception on C++ Berlin when testing recompiled applications that use TMSFMX components. It seems than it happens when just including "FMX.TMSCustomGrid.hpp" into a unit.
Steps to reproduce (Rad Studio 10.1 Berlin)
- Create a new Multidevice application C++.
- Project options: set "Link with runtime packages" to false (I need to distribute a single exe file).
- At form's unit header, add #include "FMX.TMSCustomGrid.hpp"
- Build & run this empty application.
- When the application is closed, a exception is thrown: "First chance exception at $77365AE8. Exception class EBindingScopeFactoryError with message 'Scope class TBindSourceAdapterCustomScope not registered'. Process Project15.exe (8760)".
- If you comment this include, clean & build app, application closes normally.
Can you confirm me that you can reproduce this problem ?
We were able to reproduce this issue, but we are also able to reproduce this issue after dropping a TKinveyProvider on the form, so this issue is not related to our components, but actually an issue in C++Builder. This issue should be reported to Embarcadero.
I got the same strange problem. C++ Builder, Berlin, Grid usage static package linking, TMS FMX Pack 3.4.0.0.
I'm afraid, that something is implicitly unregistering bind scope before it is unregistered on normal application unload. It may be a Berlin problem, not TMS. Further investigation is required.