#1 mORMot 1 » Range error when connecting TSQLRestServerDB » 2015-12-22 18:28:21

jkuiper1321
Replies: 1

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;

Board footer

Powered by FluxBB