[Lazarus] Might be a bug in lcl/lclproc.pas ConvertUTF8toUTF16()

Brad Campbell brad at wasp.net.au
Sat Oct 4 10:14:03 CEST 2008


I think that the problem is the TMainMenu component. Now, I use a TPopupMenu
and it works correctly.

2008/10/2 Usuario AnĂ³nimo <usuarioanonimomysql at gmail.com>

>  project1.lpr
>
> program project1;
> {$mode objfpc}{$H+}
> uses
>   {$IFDEF UNIX}{$IFDEF UseCThreads}
>   cthreads,
>   {$ENDIF}{$ENDIF}
>   Interfaces, // this includes the LCL widgetset
>   Forms
>   { add your units here }, Unit1;
> begin
>   Application.Initialize;
>   Application.CreateForm(TForm1, Form1);
>   Application.Run;
> end.
> *I forgot to say that the error occurs under WinCE.*
>
> The error not always occurs, only sometimes. Why?
>
> 2008/10/2 Marc Weustink <marc.weustink at cuperus.nl>
>
>  Bart wrote:
>> >
>> >
>> > Should you free the form if you set Application as the owner? Will not
>> > then Application try to free it again if the app closes, and throw an AV
>> > at you?
>>
>> No, when you free componentA which is owned by componentB, then
>> componentA is removed from the childlist of componentB, avoiding a
>> double free.
>>
>> Marc
>>
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lazarus.freepascal.org
>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20081003/039c445b/attachment-0007.html>


More information about the Lazarus mailing list