#1 2012-05-09 19:31:35

BrentG
Member
Registered: 2012-04-05
Posts: 31

Problem with TestSQL3Register.Dpr

I've been away for a month so I decided to re-download the most recent sources Synopse OpenSource-90b1a2a4b3be5985.zip.
I ran TestSQL3.dpr and of course like last time, it failed to use the named pipe for one of its tests because I'm using Win7 (XE2 upd4).

! Exception ECommunicationException raised with messsage:
The system cannot find the file specifiedct to server "Test"

According to your Readme.txt, I then compiled and ran TestSQL3Register.dpr as administrator and re-ran TestSQL3.dpr. It still failed on the named pipes test.
1) So do I need to change TestSQL3.dpr so it uses the HTTP server instead of named pipes?
2) How do I know the HTTP server is actually running?

I did some debugging in TestSQL3Register.dpr and found THttpApiServer.AddUrlAuthorize method is setting
Config.KeyDesc.pUrlPrefix to http://+:888/root/

Why? I thought it would be something like http://localhost:888

TIA

Brent

Offline

#2 2012-05-10 05:11:38

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

Re: Problem with TestSQL3Register.Dpr

The named pipe access sounds like a configuration issue of you PC.
Probably an user rights issue. Try to launch it as administrator, for instance.

The TestSQLRegister does have nothing to do with named pipes communication: it is only necessary if you want to use the http.sys kernel-mode HTTP server - this is not even mandatory to run the tests, since the HTTP test is able to use plain WinSock API instead for serving the data.

The tests cover ALL means of communication, i.e. it will use GDI messages, in-process communication, the named pipe access, http access.
So you can not "use the HTTP server instead of named pipes" in TestSQL3.dpr.
And the HTTP server is running only when the HTTP tests are running.

About http.sys configuration (AddUrlAuthorize), see the MSDN documentation.
http://msdn.microsoft.com/en-us/library … s.85).aspx
and about URI prefix content
http://msdn.microsoft.com/en-us/library … s.85).aspx

Offline

#3 2012-05-10 14:42:33

BrentG
Member
Registered: 2012-04-05
Posts: 31

Re: Problem with TestSQL3Register.Dpr

Ok, thanks for the explanation.
The Readme.Txt step 4 is what confused me:

4) Compile the project in D:\Dev\Synopse\Sqlite3\TestSQL3.dpr and run it to make sure it passes all tests.
   On some computers, named pipes communication tests may fail - see http://synopse.info/forum/viewtopic.php?id=678
   If you want to run the tests with the fast http.sys kernel-based HTTP server, you'll need to compile and run (as administrator) TestSQL3Register.dpr before launching TestSQL3.dpr


After reading this I was under the assumption that running TestSQL3Register.exe would have TestSQL3.exe bypass named pipes and use the HTTP Server instead.


Brent

Offline

#4 2012-05-10 15:18:00

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

Re: Problem with TestSQL3Register.Dpr

smile

Offline

Board footer

Powered by FluxBB