[Lazarus] lazarus 1.6+fpc 2.6.4, win32, crashes in iphtml.pas

Luca Olivetti luca at wetron.es
Fri Sep 30 12:27:46 CEST 2016


El 30/09/16 a les 11:15, Luca Olivetti via Lazarus ha escrit:
> El 29/09/16 a les 19:35, Luca Olivetti via Lazarus ha escrit:
>> Hello,
>>
>> I'm playing with lazarus 1.6 (a bit late, I know) with fpc 2.6.4, win32,
>>  and I have a strange problem with the ide:
>> the object inspector information box shows nothing and, eventually, when
>> I click on fields in the object inspector, lazarus becomes unresponsive
>> and then crashes.
>> If try to begug the ide under lazarus (tried both with the old 1.4.4 and
>> the new 1.6), I see that it crashes in the heap manager (heap.inc) when
>> it tries to allocate 1117978624 bytes (!)
>> This is the call stack:
>
> [snip]
>
> FWIW, "transplanting" the version of turbopower_ipro from lazarus 1.4.4
> to 1.6 (and defining html_print in its lpk otherwise it doesn't compile)
> "solves" this problem.

I now found that the problem is with the directive

{$MODESWITCH NESTEDPROCVARS}.

If I compile the old turbopower_ipro with this directive (even if it 
doesn't need it) it doesn't work (the information box doesn't show 
anything, though I didn't manage to crash lazarus yet), while if I 
rewrite the new iphtml.pas in order to remove the directive it works OK.

A bug in fpc 2.6.4?

Bye
-- 
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007


More information about the Lazarus mailing list