#1 2020-11-23 17:25:38

Javierus
Member
Registered: 2019-09-18
Posts: 43

[SOLVED] mORMot2 hangs compiler under D2007

If you try to compile \mORMot2\test\mormot2tests.dpr, D2007 IDE compiler will hang in mormot.core.mustache.pas

It's not the project: when trying to anything that uses any of:
mormot.core.mustache.pas
mormot.net.rtsphttp.pas
mormot.db.sql.pas

the D2007 IDE compiler will hang

I don't know if there are more units that hangs

If it is worth anything: investigating the problem on mormot.net.rtsphttp.pas, I found the problem related to the class field:
    fPendingGet: TRawUTF8List;
any line using it would hang the compiler, except for the declaration itsef, and fPendingGet.Free

Hope it helps

Last edited by Javierus (2020-11-26 11:00:28)

Offline

#2 2020-11-23 18:17:46

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

Re: [SOLVED] mORMot2 hangs compiler under D2007

I am not able to reproduce it with Delphi 2007 command line compiler.

Offline

#3 2020-11-23 18:50:06

Javierus
Member
Registered: 2019-09-18
Posts: 43

Re: [SOLVED] mORMot2 hangs compiler under D2007

I've never used the command line compiler; at least I don't remember doing it in the last 20 years. If you paste here the exact command line you have used, I can try it here

Btw, editing the mormot.net.rtsphttp.pas from the IDE, and then closing the file, was also hanging the whole D2007 IDE

Offline

#4 2020-11-23 20:37:16

tbo
Member
Registered: 2015-04-20
Posts: 335

Re: [SOLVED] mORMot2 hangs compiler under D2007

I cannot confirm this use case. Delphi 2007 with all updates. mORMot2 commit 2.0.1 (GitHub commit 536).
I can compile mormot2tests.exe without problems and also edit, save and close the file mormot.net.rtsphttp.pas in the IDE.

Maybe you have installed IDE extensions?
Can you give me a step by step guide?

Bis bald...
Thomas

Offline

#5 2020-11-26 10:59:54

Javierus
Member
Registered: 2019-09-18
Posts: 43

Re: [SOLVED] mORMot2 hangs compiler under D2007

* Clean D2007 install
* Clean computer
* New package
* without DCUs, .local, .identcache

it happens few, random times

But if I make a package with all three of mormot.core.mustache, mormot.db.sql,mormot.net.rtsphttp.pas, and any other units you want, it compiles fine

Following this rule and recreating the *.dpk and *.dproj on the first computer, it all works fine

So this "issue" is SOLVED

Offline

Board footer

Powered by FluxBB