#1 2014-04-01 16:37:34

dfobare
Member
Registered: 2014-04-01
Posts: 5

problem in HttpAPIServer demo

Am new to mORMot and am going thru demos. This will not compile as TSockData has been changed to RawByteString in v1.17 of SynCrtSock. I changed the declarations in httpapiserver.dpr and it runs like a charm.

Offline

#2 2014-04-01 18:22:23

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

Re: problem in HttpAPIServer demo

???
More than once a day, we compile all samples,  including "09 - HttpApi web server", with the latest version of the code, before commiting to our Fossil source code repository.
We do not have any problem, with Delphi 6 and up.

I guess your code base is inconsistent, and you did not override all unit files.
Since 1.17, the code base has changed a lot!
Version 1.18 is much more complete, and safer.

Please see the 1.18 readme.txt file, and get the latest sources from http://synopse.info/files/mORMotNightlyBuild.zip

Offline

#3 2014-04-01 19:40:03

dfobare
Member
Registered: 2014-04-01
Posts: 5

Re: problem in HttpAPIServer demo

Not sure what you meant by "override all unit" files.

So I downloaded the nightly build. As per instructions I first ran TestSQL3Register. Ran fine. Then I run TestSQL3. Bomb. In Section 2.8. Last successful test completion was "Crypted Database". Error message is "TSQLRequest.Reset called with no previous Request". Here is the relevant section from the console:

2.8. External database:
  - External records: 2 assertions passed  331us
  - Auto adapt SQL: 448 assertions passed  26.96ms
  - Crypted database: 253,275 assertions passed  184.27ms
!  - External via REST: 9 / 133,666 FAILED  614.23ms
!  - External via virtual table: 17,934 / 79,148 FAILED  3.79s
  - JET database: 7,007 assertions passed  719.09ms
  Total failed: 17,943 / 473,546  - External database FAILED  5.33s


Synopse framework used: 1.18
SQlite3 engine used: 3.8.4.2
Generated with: Delphi 7 compiler

Offline

#4 2014-04-01 20:04:39

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

Re: problem in HttpAPIServer demo

Sounds pretty weird.
I just tested with Delphi 7 compiler and 3.8.4.2 sqlite3.obj files.
No problem at all...

Could you find out what is the exact error?

Offline

#5 2014-04-01 20:46:21

dfobare
Member
Registered: 2014-04-01
Posts: 5

Re: problem in HttpAPIServer demo

That's as much info as I have. Ran it via the IDE the first time so I could give you that "Reset called with no previous Request" message. Ran it the 2nd time via console so I could give you the console output.

Offline

#6 2014-04-01 21:09:05

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

Re: problem in HttpAPIServer demo

Two directions:
- Run in the IDE, and find out in the debugger what's wrong;
- Please enable logging, and send here the exception trace just around the exception.

Offline

Board footer

Powered by FluxBB