#1 2015-12-22 18:28:21

jkuiper1321
Member
Registered: 2015-12-22
Posts: 1

Range error when connecting TSQLRestServerDB

I'm really new to mORMot.
I read the beginning of the documentary and look at the samples in SQLLITE3\samples; especially 01 and 02.
I installed it on Lazarus and Delphi. Because all samples are working in Delphi, I tried to create my first sample.
First I tested de connection and mORMot utillities with the SQLite3 test. That's is working okay (only 3 warnings).

My sample is compiling correctly, but when I run the application it occurs an error :

Project sample.exe raised exception class ERangeError with message 'Range check error'.

I don't know why. By debugging the error occurs on the line

 procedure TForm1.FormShow(Sender: TObject);
begin
  Model := TSQLModel(TSQLForumNames);
-->   Database := TSQLRestServerDB.Create(Model, ChangeFileExt(ExeVersion.ProgramFileName,'.db3'));
  TSQLRestServerDB(Database).CreateMissingTables;
end;

Offline

#2 2015-12-22 20:05:53

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

Re: Range error when connecting TSQLRestServerDB

Ensure you disabled range checking in your project compiler options.

Offline

Board footer

Powered by FluxBB