#1 2015-07-22 02:52:51

bookbarsa
Member
Registered: 2014-06-13
Posts: 5

Problem when running in Windows Server mORMot Lazarus

Hello,
I installed the Lazarus / FPC through the FPCUP.
Lazarus: 1.5
FPC: 3.1.1
WIn 7 64


I took the mORMotNightlyBuild.
In Synopse.inc deisei like this: {$ define PUREPASCAL}.

Created a mORMot Server, he is compiling but I get an error on the line below in mORMot.pas:

procedure TInterfaceFactoryRTTI.AddMethodsFromTypeInfo(aInterface: PTypeInfo);

  P := AlignToPtr(@PPropInfo(P)^.Name[ord(PPropInfo(P)^.Name[0])+1]); 

I'm thinking I did something wrong in the installation of mORMot ...

Could someone help me? even to install on Windows, and use correctly the FPCup?

Offline

#2 2015-07-22 07:01:40

Thomas-Acia
Member
From: Metz (France)
Registered: 2015-04-16
Posts: 79

Re: Problem when running in Windows Server mORMot Lazarus

Hello,

Personnally I use CodeTyphon. It is much like Lazarus. I had this error too. I don't know if it's the best way to solve it but :

- Go to the project options - analysis and change the mode. You can use : MODE DELPHI.

It solved my compilation errors.

Thormot

Edit 1 : 1437548584-sans-titre.png

Edit 2 : I had the same problem here : http://synopse.info/forum/viewtopic.php?id=2542

Last edited by Thomas-Acia (2015-07-22 07:08:41)


Delphi 2010 - Delphi XE5 (x64 Apps) - CodeTyphon - Typhon IDE v 5.7 - FPC 3.1.1 - mORMot 1.18
Windows 7 - VirtualBox : Linux Debian 8.5 Jessie 32 bits

Offline

#3 2015-07-23 01:33:14

bookbarsa
Member
Registered: 2014-06-13
Posts: 5

Re: Problem when running in Windows Server mORMot Lazarus

Hello,
Thank you for your answer.
I did what you said, and also did what it says on this link:
http://synopse.info/forum/viewtopic.php?pid=16790

So, I could compile and run my mORMOt Server... I updated my FPC with FPCUP lowering the branch of rtti...
Using this branch of the FPC, it is safe?

Offline

#4 2015-07-23 06:05:30

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Problem when running in Windows Server mORMot Lazarus

Ensure you follow http://synopse.info/files/html/Synopse% … l#TITL_143

Add {$I Synopse.inc} at the top of all your units using mORMot.
It will define the FPC modes and syntax as expected by the framework.

Offline

Board footer

Powered by FluxBB