#1 Re: mORMot 1 » '0.42793' is not a valid timestamp » 2017-03-12 01:58:07

Indeed,
So i use version c8915b80ceef724651b4e97e7f222cd83de69bbb in 2017/1/20.

#2 Re: mORMot 1 » Need help on WebSockets client low level usage » 2016-10-13 08:05:59

i guess it is, but i don't known how to use it .

#3 Re: mORMot 1 » Need help on WebSockets client low level usage » 2016-10-13 07:56:52

i guess it is, but i don't known how to use it .

#4 Re: mORMot 1 » Need help on WebSockets client low level usage » 2016-10-13 01:51:02

It is so strange, there is a class named TWebSocketServer, but no class TWebSocketClient.

the client demo is a html page, but i want write client with delphi, how?

#6 Re: mORMot 1 » Last Modify bring a bug! » 2016-10-11 09:06:41

not only one bug, demo Project31SimpleEchoServer raise exception:

Debugger Exception Notification
---------------------------
Project Project31SimpleEchoServer.exe raised exception class ECrtSocket with message 'SockRecvLn 10060 WSAETIMEDOUT'.

#7 mORMot 1 » Last Modify bring a bug! » 2016-10-11 06:02:48

daisutao
Replies: 7

Now Most of demos can not compile.

Error code at unit SynEcc.pas:

function TECDHEProtocol.Clone: IProtocol;
begin
  result := CreateFrom(self);
end;

#9 Re: mORMot 1 » Contribution: TSynRestDataset » 2016-09-30 07:24:14

@EMartin
good job! seem to more *mORMot* than SynDBVCL and SynDBMidasVCL.

#10 mORMot 1 » How to show downloading progress at client side? » 2016-09-27 02:24:30

daisutao
Replies: 1

Hi ab,

I need download some files from http server.
and i see the demo "26 - RESTful ORM" and modified one, it's work fine!.

but i want to show downloading progress in a progress bar on client, how to do it?

PS: server use TSQLRestServerDB + TSQLHttpServer, client use TSQLHttpClient.

#11 Re: mORMot 1 » Modularization of application with interfaces and dll (or bpl?) » 2016-07-07 08:02:44

i known, when service build in exe, it's ok, but build in dll, error happended.

please check the following code:
https://www.dropbox.com/s/iokoydstrxbwv … d.zip?dl=0

problem 1. at file fClient.pas line 64

Client.ServiceRegisterClientDriven(TypeInfo(IRemoteSQL), ISQL)
--------------with param '*', will pass--------------
Client.ServiceRegisterClientDriven(TypeInfo(IRemoteSQL), ISQL, '*')

problem2. call ISQL.Execute with param True, received param False.

function Execute(const aSQL: RawUTF8; aExpectResults, aExpanded: Boolean): RawJSON;
--------------change Boolean to ByteBool, will ok--------------
function Execute(const aSQL: RawUTF8; aExpectResults, aExpanded: ByteBool): RawJSON;

#12 Re: mORMot 1 » Modularization of application with interfaces and dll (or bpl?) » 2016-07-07 01:28:11

The reason seems to be parameter Boolean。
when i change Boolean to ByteBool, the problem 2 is ok.

a bug??

#14 Re: mORMot 1 » Modularization of application with interfaces and dll (or bpl?) » 2016-07-06 12:20:26

@EMartin

I tested the program you provided, it worked very well.
After that, I wrote a DLL like the example, Interface copy from "16 - Execute SQL via services"。

IRemoteSQL = interface(IInvokable)
  ['{9A60C8ED-CEB2-4E09-87D4-4A16F496E5FE}']
    procedure Connect(const aServer, aDatabase, aUserID, aPassWord: RawUTF8);
    function GetTableNames: TRawUTF8DynArray;
    function Execute(const aSQL: RawUTF8; aExpectResults, aExpanded: Boolean): RawJSON;
  end;

but found the following two questions:
1. when client call ServiceRegisterClientDriven(TypeInfo(IRemoteSQL), ISQL), error occurred:
{
    "ClassName":"EServiceException",
    "Address":"015E4340",
    "Message": "TServiceFactoryClient.Create(): server's IRemoteSQL contract differs from client's: expected [\"ED5FDD7EA62781EB\"], received [\"4607DE69C9F22AD4\"]"
}
Exception EServiceException raised - ErrorCode=400

2. call ISQL.Execute with parameters                      ('select * from aTable', True, False).
    but when trace the DLL, received parameters are ('select * from aTable', False, False).

what's wrong with me? Can you help me?

#15 Re: mORMot 1 » Is mORMot support iSeries Access ODBC Driver? » 2015-05-29 23:11:58

thank you! i will try it at next week.

now it work ok!.  thank again.

#16 Re: mORMot 1 » Is mORMot support iSeries Access ODBC Driver? » 2015-05-29 08:18:42

I change the setting:

Database = "Driver=iSeries Access ODBC Driver;System=192.168.121.40;DefaultLibraries=MEKBLIB2;Uid=mz6;Pwd=mz6"
Server = ""

but i got an excption:
TODBCConnection.Connect: unrecognized provider
DBMSName=DB2/400 SQL
DriverName=CWBODBC.DLL
DBMSVersion=05.04.0014

view source, only support follow DB?
DBMS_NAMES: array[0..7] of PAnsiChar = (
    'ORACLE','MICROSOFT SQL','ACCESS','MYSQL','SQLITE','FIREBIRD','INTERBASE','POSTGRE');

#17 mORMot 1 » Is mORMot support iSeries Access ODBC Driver? » 2015-05-29 03:21:28

daisutao
Replies: 4

I want to connect AS400 use SynDBExplorer by ODBC, but not success.

the follow is my set, what's wrong ?
Server = "Driver=iSeries Access ODBC Driver;System=192.168.121.40;DefaultLibraries=MEKBLIB2;Uid=mz6;Pwd=mz6"

Board footer

Powered by FluxBB