I wrote a Datasnap Rest Service application and the Exe is 24MB. I tried putting:

I wrote a Datasnap Rest Service application and the Exe is 24MB.  I tried putting:

{$WEAKLINKRTTI ON}
{$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}

but then I get an exception when starting the service saying there is not enough RTTI in the service.  Does anyone know how I can make the EXE smaller (XE4)?   It's not much code, but I guess the JSON and datasnap code is included in the Exe.

Comments

  1. What is the goal? Optimisation, or just reduction of the executable's size? 'cause in the latter case, UPX might help...

    ReplyDelete
  2. Just reduction in executable size.   I guess I don't want to use UPX.  The 24MB is ok I guess, since it will be running on a Windows Server.  Just wondering if it is possible to reduce the size.

    ReplyDelete

Post a Comment