smart-mobile-studio

Unable to access RTTI for SmartMobileStudio


Trying to use Smart's RTTI as defined in this post, I was not able to let RTTI be emitted to the HTML.

When I define:

type
   TBase = class
      published
         Field : Integer = 1;
   end;

 var base := new TBase;
 PrintPropertiesForType(base);

Then, there is no RTTI available for this class.

In index.html, I have:

var $RTTI = [];

Meaning that there is no RTTI emitted.

This occurs for whatever Project Options I have set. (in short, the RTTI compilation option does not make any difference)

I’m using SMS 2.0.1.741.

I’m stuck with implementing a native SMS client for mORMot..


Solution

  • There seem to be a bug with this issue in the latest hotfix. I have reported the issue to the developer team and it should be fixed shortly. I noticed the exact same thing myself testing the RTTI methods on different versions of SMS.

    An immediate solution is to just roll-back to version 2.0.0.723.

    You can download that version here: http://smartmobilestudio.com/download/v2_0_0_723/