#1 Re: mORMot 1 » Compress data » 2013-02-17 19:02:19

If I don't use any Define, does the framework uses COMPRESSDEFLATE as default?

#2 Re: mORMot 1 » Compress data » 2013-02-17 16:58:05

Do You mean in the source of the project like this?

{$R *.res}
{$define COMPRESSSYNLZ}

begin
  Application.Initialize;
  Application.MainFormOnTaskbar := True;
  Application.CreateForm(TfrmServer, frmServer);
  Application.Run;
end.

#3 Re: mORMot 1 » Compress data » 2013-02-17 15:22:45

Ab, Is the data compress by default?

If I use on the server side:

{$define COMPRESSSYNLZ}
  FServer := TSQLHttpServer.Create('8988', DB);

and on the client side:

{$define COMPRESSSYNLZ}
  FHttp := TSQLHttpClient.Create(Servidor, '8988', FModel);

Does this code enable the compression?

#4 mORMot 1 » Connection Problem » 2013-02-17 12:56:19

Niko
Replies: 1

Hello,

How can we handle a connection problem? When the client is unable to connect to the server we want to show the user a message about it.

I tried:


   try
     (...)
   except
      on E : Exception do
        ShowMessage('.....');
   end;

But it doen'st work.

Thanks for you time...

#5 Re: mORMot 1 » Compress data » 2013-02-16 17:37:02

Hi, I'm new in this forum.

How did you solve you problem?
Because I'm having the same problem.

Board footer

Powered by FluxBB