#1 2013-07-23 19:07:57

Roberto Schneiders
Member
From: Santa Catarina, Brazil
Registered: 2012-09-19
Posts: 127
Website

Problem with mORMot + Delphi 6 + Wine

After the first test (http://synopse.info/forum/viewtopic.php?id=1300), the mORMot REST client is working perfectly with Wine. Just had to add WinHTTP DLLs in wine.

Now I'm testing some other features in an application made in Delphi 6. This application runs on Wine 1.01 on some clients.

Basically the idea is to use SQLite instead of BDE. big_smile

I did two test applications, one in Delphi XE4 and another in Delphi 6.
The application made in Delphi XE4 works perfectly. The application made in Delphi 6 does not open in Wine.

The application is frozen in the background. The status in the linux task manager shows "PIPE_WAIT".

do you have any idea what can be?

These are the sources of the framework being used in the project:

mORMot.dcu
mORMotDB.dcu
mORMotSQLite3.dcu
SampleData.dcu
SynCommons.dcu
SynCrypto.dcu
SynDB.dcu
SynDBFirebird.dcu
SynLZ.dcu
SynSQLite3.dcu
SynSQlite3Static.dcu
SynSSPIAuth.dcu
SynZip.dcu

Offline

#2 2013-07-23 21:12:18

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

Re: Problem with mORMot + Delphi 6 + Wine

Do you use http for connection, or named pipes?

Offline

#3 2013-07-24 11:27:30

Roberto Schneiders
Member
From: Santa Catarina, Brazil
Registered: 2012-09-19
Posts: 127
Website

Re: Problem with mORMot + Delphi 6 + Wine

In this example, I do not have any communication (for now). It is a standalone application.

The only objects instantiated are TSQLRestServerDB and  TSQLModel. But the problem seems to be before that, because the application does not start. Does not run any of my codes.
Must be something in a Initialization clause.

I can send you the source if it is useful.

Offline

#4 2013-07-24 17:57:33

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

Re: Problem with mORMot + Delphi 6 + Wine

Yes, without the source, it is difficult to find out what's wrong.

I'll make tests including Delphi 6 on my side.

Offline

#5 2013-07-25 13:34:05

Roberto Schneiders
Member
From: Santa Catarina, Brazil
Registered: 2012-09-19
Posts: 127
Website

Re: Problem with mORMot + Delphi 6 + Wine

Something very strange happened here.

I set up an environment for remote debugging with Delphi 6 and Wine to try to identify this problem (Never thought it would work, but it works! big_smile).
I removed all of the mORMot units and the application continued not starting. hmm

I removed all the code from the project, it was just the Form. And nothing. neutral
I recreated the project from scratch, including the same things of the previous design. And it worked! big_smile

I have no idea what happened.

Offline

#6 2013-07-25 14:48:07

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

Re: Problem with mORMot + Delphi 6 + Wine

I just run the regression tests with Delphi 6 - including all multi-thread process.
(as I did with Delphi 5, 7, XE3 and XE4)

Sounds to work as expected:

   Synopse mORMot Framework Automated tests
  ------------------------------------------


1. Synopse libraries

 1.1. Low level common:
  - System copy record: 22 assertions passed  105us
  - TDynArray: 1,011,445 assertions passed  94.47ms
  - TDynArrayHashed: 1,200,629 assertions passed  63.98ms
  - Fast string compare: 7 assertions passed  72us
  - IdemPropName: 10 assertions passed  64us
  - Url encoding: 105 assertions passed  636us
  - IsMatch: 599 assertions passed  239us
  - Soundex: 35 assertions passed  177us
  - Numerical conversions: 883,672 assertions passed  289.44ms
  - Curr64: 20,053 assertions passed  857us
  - CamelCase: 5 assertions passed  90us
  - Bits: 4,614 assertions passed  100us
  - Ini files: 7,004 assertions passed  17.90ms
  - Unicode - Utf8: 69,093 assertions passed  608.37ms
  - Iso8601 date and time: 24,000 assertions passed  2.97ms
  - Url decoding: 1,100 assertions passed  202us
  - Mime types: 19 assertions passed  150us
  - TSynTable: 41 assertions passed  1.27ms
  - TSynCache: 404 assertions passed  198us
  - TSynFilter: 1,005 assertions passed  1.56ms
  - TSynValidate: 677 assertions passed  540us
  - TSynLogFile: 42 assertions passed  321us
  Total failed: 0 / 3,224,581  - Low level common PASSED  1.08s

 1.2. Low level types:
  - RTTI: 34 assertions passed  410us
  - Url encoding: 200 assertions passed  403us
  - Encode decode JSON: 251,055 assertions passed  72.41ms
  Total failed: 0 / 251,289  - Low level types PASSED  74.90ms

 1.3. Big table:
  - TSynBigTable: 19,321 assertions passed  33.83ms
  - TSynBigTableString: 16,071 assertions passed  13.37ms
  - TSynBigTableMetaData: 384,060 assertions passed  564.00ms
  - TSynBigTableRecord: 452,185 assertions passed  1.45s
  Total failed: 0 / 871,637  - Big table PASSED  2.07s

 1.4. Cryptographic routines:
  - Adler32: 1 assertion passed  290us
  - MD5: 1 assertion passed  76us
  - SHA1: 5 assertions passed  128us
  - SHA256: 5 assertions passed  73us
  - AES256: 6,372 assertions passed  76.99ms
  - RC4: 1 assertion passed  426us
  - Base64: 11,994 assertions passed  45.34ms
  Total failed: 0 / 18,379  - Cryptographic routines PASSED  125.96ms

 1.5. Compression:
  - In memory compression: 12 assertions passed  124.25ms
  - Gzip format: 19 assertions passed  243.42ms
  - Zip format: 36 assertions passed  451.24ms
  - SynLZO: 3,006 assertions passed  43.43ms
  - SynLZ: 29,018 assertions passed  391.90ms
  Total failed: 0 / 32,091  - Compression PASSED  1.25s

 1.6. Synopse PDF:
  - TPdfDocument: 4 assertions passed  5.99ms
  - TPdfDocumentGDI: 6 assertions passed  17.60ms
  Total failed: 0 / 10  - Synopse PDF PASSED  24.77ms


2. mORMot

 2.1. File based:
  - Database direct access: 10,138 assertions passed  152.31ms
  - Virtual table direct access: 12 assertions passed  2.49ms
  - TSQLTableJSON: 104,066 assertions passed  59.63ms
  - TSQLRestClientDB: 604,037 assertions passed  1.94s
  Total failed: 0 / 718,253  - File based PASSED  2.16s

 2.2. File based WAL:
  - Database direct access: 10,138 assertions passed  157.24ms
  - Virtual table direct access: 12 assertions passed  1.53ms
  - TSQLTableJSON: 104,066 assertions passed  58.43ms
  - TSQLRestClientDB: 604,037 assertions passed  1.94s
  Total failed: 0 / 718,253  - File based WAL PASSED  2.16s

 2.3. Memory based:
  - Database direct access: 10,136 assertions passed  145.09ms
  - Virtual table direct access: 12 assertions passed  1.22ms
  - TSQLTableJSON: 104,066 assertions passed  57.60ms
  - TSQLRestClientDB: 672,333 assertions passed  2.38s
  Total failed: 0 / 786,547  - Memory based PASSED  2.59s

 2.4. Basic classes:
  - TSQLRecord: 52 assertions passed  339us
  - TSQLRecordSigned: 200 assertions passed  2.95ms
  - TSQLModel: 3 assertions passed  262us
  Total failed: 0 / 255  - Basic classes PASSED  4.90ms

 2.5. Client server access:
  - TSQLHttpServer: 2 assertions passed  2.41ms
     using THttpApiServer
  - TSQLHttpClient: 3 assertions passed  21.51ms
  - Http client keep alive: 3,085 assertions passed  174.08ms
     4818 B, first 4.23ms, done 158.70ms i.e. 6300/s, aver. 158us, 29.4 MB/s
  - Http client multi connect: 3,085 assertions passed  163.02ms
     4818 B, first 614us, done 152.44ms i.e. 6559/s, aver. 152us, 30.6 MB/s
  - Named pipe access: 3,087 assertions passed  509.99ms
     4818 B, first 256.32ms, done 47.60ms i.e. 21007/s, aver. 47us, 98.2 MB/s
  - Local window messages: 3,086 assertions passed  20.12ms
     4818 B, first 59us, done 14.51ms i.e. 68875/s, aver. 14us, 322.0 MB/s
  - Direct in process access: 3,054 assertions passed  15.22ms
     4818 B, first 18us, done 10.63ms i.e. 94029/s, aver. 10us, 439.6 MB/s
  Total failed: 0 / 15,402  - Client server access PASSED  912.03ms

 2.6. Service oriented architecture:
  - Weak interfaces: 56 assertions passed  381us
  - Service initialization: 133 assertions passed  1.36ms
  - Direct call: 608,487 assertions passed  26.60ms
  - Server side: 608,506 assertions passed  26.06ms
  - Client side REST: 608,511 assertions passed  282.08ms
  - Client side JSONRPC: 608,505 assertions passed  316.40ms
  - Client side synchronized REST: 608,505 assertions passed  608.64ms
  - Client side weak authentication REST: 608,505 assertions passed  264.34ms
  - Security: 135 assertions passed  828us
  - Custom record layout: 608,505 assertions passed  291.99ms
  - Mocks and stubs: 30,031 assertions passed  42.57ms
  Total failed: 0 / 4,289,879  - Service oriented architecture PASSED  1.86s

 2.7. External database:
  - External records: 2 assertions passed  381us
  - Auto adapt SQL: 260 assertions passed  9.60ms
  - Crypted database: 253,275 assertions passed  145.62ms
  - External via REST: 250,472 assertions passed  594.85ms
  - External via virtual table: 250,472 assertions passed  1.03s
  Total failed: 0 / 754,481  - External database PASSED  1.78s

 2.8. Multi thread process:
  - Create thread pool: 1 assertion passed  1.55ms
  - TSQLRestServerDB: 4,821 assertions passed  166.86ms
     1 (7.49ms=26670/s)  2 (13.86ms=14425/s)  5 (57.83ms=3458/s)  10 (37.86ms=52
81/s)  30 (7.87ms=25396/s)  50 (37.66ms=5309/s)
  - TSQLRestClientDB: 4,822 assertions passed  117.53ms
     1 (7.92ms=25227/s)  2 (8.86ms=22560/s)  5 (9.85ms=20288/s)  10 (19.81ms=100
95/s)  30 (21.82ms=9164/s)  50 (44.68ms=4475/s)
  - TSQLRestClientURINamedPipe: 2,412 assertions passed  1.61s
     1 (279.23ms=716/s)  2 (372.90ms=536/s)  5 (760.87ms=262/s)
  - TSQLRestClientURIMessage: 3,222 assertions passed  150.35ms
     1 (18.46ms=10832/s)  2 (21.38ms=9352/s)  5 (36.49ms=5479/s)  10 (70.11ms=28
52/s)
  - TSQLHttpClientWinHTTP_HTTPAPI: 4,812 assertions passed  298.62ms
     1 (64.27ms=3111/s)  2 (47.86ms=4178/s)  5 (38.84ms=5148/s)  10 (42.83ms=466
9/s)  30 (50.82ms=3935/s)  50 (47.66ms=4195/s)
  - TSQLHttpClientWinSock_WinSock: 4,820 assertions passed  233.24ms
     1 (35.31ms=5663/s)  2 (33.91ms=5897/s)  5 (31.90ms=6267/s)  10 (32.96ms=606
7/s)  30 (43.96ms=4548/s)  50 (47.76ms=4186/s)
  Total failed: 0 / 24,910  - Multi thread process PASSED  2.59s


Synopse framework used: 1.18
SQlite3 engine used: 3.7.17
Generated with: Delphi 6 compiler

Time elapsed for all tests: 18.92s
Tests performed at 7/25/2013 4:46:32 PM

Total assertions failed for all test suits:  0 / 11,705,967
 All tests passed successfully.

Done - Press ENTER to Exit

... so I do not know what is wrong with your configuration.

Offline

Board footer

Powered by FluxBB