Getting a 'Scope class (...) not reg..' exception

Hi,


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 ?

Thank you in advance,

Toni H.

Hi, 


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.

This is an issue in C++ Builder Berlin and not a TMS issue (https://quality.embarcadero.com/browse/RSP-14927)

As stated, this is an issue in C++Builder itself, not in our component.
See also:

https://community.embarcadero.com/answers/trestclient-throws-ebindingscopefactoryerror

As stated, this is a problem in C++Builder, not in our component

See: https://community.embarcadero.com/answers/trestclient-throws-ebindingscopefactoryerror

<o:p></o:p>

 

Try this solution:

https://thomas2d.wordpress.com/2017/01/11/solving-ebindingscopefactoryerror/

 


As stated, this is a problem in C++Builder, not in our component

See: https://community.embarcadero.com/answers/trestclient-throws-ebindingscopefactoryerror

<o:p></o:p>

<o:p> </o:p>

Try this solution:<o:p></o:p>

https://thomas2d.wordpress.com/2017/01/11/solving-ebindingscopefactoryerror/