You are not logged in.
Hello,
I'm facing a very strange problem : the script I use to compile my datasnap server (XE2) produce "corrupted' executable since I added SynDBSQLite3 in reference.
When I compile from IDE, all is OK. When I compile using my script ( msbuild /v:d %DPROJ% /target:MakeAll /p:config=Debug;DCC_ExeOutput="%DESTPATH%" ) , my DataSnap server is 1,5 mb less (SQlite library size ?) and executable hangs on an EInsufficientRTTI exception message on startup.
I compile 32 bits programs on Windows 7 64 bits.
Any clue ?
Ty by advance
Offline
I guess this is because we add the option to remove all new RTTI, since our units does not need it, and it increased a lot the executable size.
Try to customize Synopse.inc file by disabling the two following lines:
{$WEAKLINKRTTI ON}
{$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}
For instance, you can add a . just after the {, as such:
{.$WEAKLINKRTTI ON}
{.$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}
Offline
It works great now !
I' m just at the beginning of the integration of your framework in my company programs, and I would have been worried to abandon it because for that issue !
Keep on doing such a great job, mORMot is really a great piece of software.
I plan to develop an Advantage database layer for your framework once I'll master the main concepts.
Ty very much.
Offline
If you have experiment on Advantage Database, it could be great to integrate it to our supported external DB back-ends.
Take a look at the SynDBNexusDB.pas unit (in SynDBDataSet sub-folder) to find out how a database adapter can be written for the ORM part.
Sadly, I do not have experiment with Advantage DB, so I won't be able to do the development.
Offline