DoR Uncompilable -- Missing code

85 views
Skip to first unread message

Nick Hodges

unread,
Jul 28, 2011, 11:17:57 AM7/28/11
to Delphi on Rails
Hey, I'm taking a look at this very interesting project. I have pulled
the entire repository from GoogleCode and added the required paths to
my library path as described in the wiki.

However, I can't compile any of the samples. (Note that I am using
Delphi XE)

If I try to compile webserver.dpr, I get this error

[DCC Fatal Error] WebServer.dpr(16): F1026 File not found:
'PDGService.dcu'

I don't have any file named PDG*.* anywhere on my system.

If I try to compile DORServer.dpr, I first had to change line 35 to:

with TThread.CurrentThread as THTTPStub do

as CurrentThread is unknown. (I couldn't fine the identifier
"CurrentThread" anywhere in the DoR codebase other than here, so I
assumed that was what it was referring to....)

After that, I then get this error:

[DCC Error] mypool.pas(35): E2010 Incompatible types: 'THTTPStub' and
'TThread'

because of course THTTPStub doesn't descend from TThread.

Am I doing something wrong? Is code missing from the SVN repository?

Thanks for any hellp --

Nick Hodges

Henri Gourvest

unread,
Jul 28, 2011, 11:55:17 AM7/28/11
to delphi...@googlegroups.com
Hi Nick,

I just commited missing updates,
it should work properly now.

2011/7/28 Nick Hodges <nickh...@gmail.com>



--
Henri Gourvest

Nick Hodges

unread,
Jul 28, 2011, 11:58:11 AM7/28/11
to delphi...@googlegroups.com
Hey -- thanks!

Just a side note -- it compiles in the RELEASE configuration, but the DEBUG configuration still fails with:

[DCC Error] DORServer.dpr(25): E2003 Undeclared identifier: 'DetectConsole'

in the DORServer.dproj  project.

Thanks again!

Nick

Henri Gourvest

unread,
Jul 28, 2011, 11:59:55 AM7/28/11
to delphi...@googlegroups.com
because I use madexcept for debuging purpose.
I remove it

2011/7/28 Nick Hodges <nickh...@gmail.com>



--
Henri Gourvest

Nick Hodges

unread,
Jul 28, 2011, 12:00:49 PM7/28/11
to delphi...@googlegroups.com
Ahh -- I spoke too soon.

I still don't have the PDG*.* files required by webserver.dpr

Nick

Henri Gourvest

unread,
Jul 28, 2011, 12:08:24 PM7/28/11
to delphi...@googlegroups.com
ok I understand webserver.dpr is deprecated, please open DORServer.dpr
i remove the old file

2011/7/28 Nick Hodges <nickh...@gmail.com>



--
Henri Gourvest

Nick Hodges

unread,
Jul 28, 2011, 12:31:28 PM7/28/11
to delphi...@googlegroups.com
Okay -- Thanks!

Henri Gourvest

unread,
Jul 28, 2011, 12:41:01 PM7/28/11
to delphi...@googlegroups.com

Well, the first thing to do is to create the firebird database using this script:
samples\web\bin\data\database.sql
next create an alias "DOR_DB" in aliases.conf or edit this file:
samples\web\bin\conf.json

for example:

{"database":
{"databasename":":c:\\db\\dordb.fdb",
"username":"SYSDBA",
"password":"masterkey",
     "characterset": "UTF8",
     "sqldialect":3}
}




2011/7/28 Nick Hodges <nickh...@gmail.com>



--
Henri Gourvest

Nick Hodges

unread,
Jul 28, 2011, 6:11:46 PM7/28/11
to delphi...@googlegroups.com
I cant' even get that far -- 

I am trying to create a very simple 'echo' server, that is, as simple a server as I can, and I can't seem to even get that to work.

It appears that my server is never found -- though I can't figure out why.

Do you have an incredibly simple example you can send me?  Client and server?

Please don't go to a lot of trouble, but it has been frustrating....

Nick

Henri Gourvest

unread,
Jul 28, 2011, 6:23:35 PM7/28/11
to delphi...@googlegroups.com

No problem, just tell me what you are trying to do.
do you need simple RPC with JSON over HTTP ?

2011/7/29 Nick Hodges <nickh...@gmail.com>



--
Henri Gourvest

Nick Hodges

unread,
Jul 28, 2011, 6:30:29 PM7/28/11
to delphi...@googlegroups.com

Yeah, that would be perfect. ;-)

On Jul 28, 2011 6:23 PM, "Henri Gourvest" <hgou...@gmail.com> wrote:

Henri Gourvest

unread,
Jul 28, 2011, 7:13:43 PM7/28/11
to delphi...@googlegroups.com
I just send it to your email address.

2011/7/29 Nick Hodges <nickh...@gmail.com>

Yeah, that would be perfect. ;-)

On Jul 28, 2011 6:23 PM, "Henri Gourvest" <hgou...@gmail.com> wrote:



--
Henri Gourvest

Henri Gourvest

unread,
Jul 28, 2011, 7:45:55 PM7/28/11
to delphi...@googlegroups.com
server is able to convert json object to native delphi value.
It also work with record, array, guid ...
For date time value server can understand java date (int64) or iso8601 dates.
server is also able to understand xml data and html forms of course.

you can also run a websocket server on the same port as http server to have an ansynchronous rpc server. And there is a websocket delphi client.

I also made an xmpp delphi client, I use it to send async messages between servers.

feel free to ask me questions, I'm glad that you are interested in this project:)

2011/7/29 Henri Gourvest <hgou...@gmail.com>



--
Henri Gourvest

Nick Hodges

unread,
Jul 28, 2011, 10:58:07 PM7/28/11
to delphi...@googlegroups.com
Is there a new sample.....?

Henri Gourvest

unread,
Jul 29, 2011, 5:02:00 AM7/29/11
to delphi...@googlegroups.com
yes, I commited a more complex sample in samples\rpc.
just update your svn.

2011/7/29 Nick Hodges <nickh...@gmail.com>



--
Henri Gourvest
Reply all
Reply to author
Forward
0 new messages