[Lazarus] RedrawMenus function in winceproc.pp - WinCE problem ?

Dimitrios Chr. Ioannidis dioannidis at artesoft.gr
Thu Sep 11 19:58:17 CEST 2008

O/H Felipe Monteiro de Carvalho έγραψε:
> On Thu, Sep 11, 2008 at 1:49 PM, Dimitrios Chr. Ioannidis
> <dioannidis at artesoft.gr> wrote:
>> The exception is gone. I comment out
> No drawbacks? Does the app keep working as expected?
> There are possible drawbacks, the first being a memory leak because
> now the dirty menu list is never cleared.
> I am tempted to simply remove this repaint menu code, but I am afraid
> it may have unpredictable effects near the release.

Well, i don't know LCL internals to agree or disagree but i could not 
test it. A small project with a TMainMenu isn't a test :) And of course 
i would like to know how to test for memory leaks using remote debugger.

>> PS: What about the ability to copy to clipboard the contets of the debug
>> output window ? It will be very handy to be able to copy debuggers
>> information. Should i add a new ticket in the tracker ?
> I added it. Take a look at what I did:

It works. Thx ... Now i can help you more providing you with debug 
output info's like this, where i'm trying to see why ApplicationType 
isn't set correctly in my device :

<-file-exec-and-symbols "E:/Programming/Projects/testLazWince/project1.exe">
<-gdb-set language pascal>
<-environment-cd .>
<-environment-cd "E:/Programming/Projects/testLazWince/">
<-data-evaluate-expression FPC_THREADVAR_RELOCATE_PROC>
&"No symbol \"FPC_THREADVAR_RELOCATE_PROC\" in current context.\n"
^error,msg="No symbol \"FPC_THREADVAR_RELOCATE_PROC\" in current context."

< stripped a lot info >

&"info file\n"
~"Symbols from \"E:/Programming/Projects/testLazWince/project1.exe\".\n"
~"Local exec file:\n"
~"\t`E:/Programming/Projects/testLazWince/project1.exe', \n"
~"        file type pei-arm-little.\n"

< stripped a lot info >

~"Connectig to remote device...\n"
~"Starting on device: \"\\gdb\\wince-stub.exe \"\n"
~"Accepting connection...\n"
~"Uploading file to device: \\gdb\\project1.exe\n"
<info program>
&"info program\n"
~"\tUsing the running image of child process 361384062.\n"
~"Program stopped at 0x11bdc.\n"
~"It stopped at a breakpoint that has since been deleted.\n"
~"Type \"info stack\" or \"info registers\" for more information.\n"
<-break-insert winceobject.inc:129>
<-break-enable 13>
<-break-insert winceproc.pp:1456>
<-break-enable 14>
<-break-insert winapi.inc:850>
<-break-enable 15>
<-break-insert intfbasewinapi.inc:1493>
<-break-enable 16>
<-stack-list-frames 0 0>

< stripped a lot info >


Dimitrios Chr. Ioannidis

More information about the Lazarus mailing list