[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: addCDKScrollItem function in CDK

From: Thomas Dickey
Subject: Re: addCDKScrollItem function in CDK
Date: Wed, 23 Mar 2005 18:50:44 -0500
User-agent: Mutt/1.5.6+20040907i

On Wed, Mar 23, 2005 at 01:37:25PM -0500, Fu Steve X wrote:
> Hi,
> The simple test code is based on scroll_ex.c. I just bind a callback to 'a'
> to invoke the addCDKScrollItem function. The items in the SCROLL starts to
> get garbled from top down if I keep pressing 'a' for 4 or 5 times. Scrolling
> the items up and down doesn't refresh the list correctly either. But it
> looks OK if I dump out chtype2Char(scrollp->item[0]). 
> Is that a bug?

yes - running with valgrind, it finds some problem.  I'll look into that now:

==4517== Invalid write of size 4
==4517==    at 0x80498A6: char2Chtype (in /users/tom/foo)
==4517==    by 0x804DDD4: addCDKScrollItem (in /users/tom/foo)
==4517==    by 0x80490C2: addItemCB (in /users/tom/foo)
==4517==    by 0x80496E4: checkCDKObjectBind (in /users/tom/foo)
==4517==    by 0x804D3CB: _injectCDKScroll (in /users/tom/foo)
==4517==    by 0x804D34B: activateCDKScroll (in /users/tom/foo)
==4517==    by 0x80492D7: main (in /users/tom/foo)
==4517==  Address 0x1BAB7CE8 is 0 bytes after a block of size 1512 alloc'd
==4517==    at 0x1B907901: calloc (vg_replace_malloc.c:176)
==4517==    by 0x804DB2F: createCDKScrollItemList (in /users/tom/foo)
==4517==    by 0x804D164: newCDKScroll (in /users/tom/foo)
==4517==    by 0x8049296: main (in /users/tom/foo)

Thomas E. Dickey <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]