bug-ncurses
[Top][All Lists]
Advanced

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

core dumped in Cdk


From: Jakub Suchy
Subject: core dumped in Cdk
Date: Mon, 26 Dec 2005 13:33:19 +0100
User-agent: Mutt/1.5.9i

Hi,
i believe a bug exists in Cdk or Cdk Perl which causes core dumped:

Try this code which should imitate "scroll list redraw" after list
changes:

#!/usr/bin/perl

use Cdk;
Cdk::init();

while(1) {
        if ($result_window) {
                $result_window->unregister();
        }
        @list = qw(test test2);
        $result_window = new Cdk::Scroll ('Title' => "<C>Test", 'Height'
=> -2, 'Width' => -1, 'Numbers' => "False", 'Spos' => "RIGHT", 'Xpos' =>
'LEFT', 'Ypos' => '3', 'List' => address@hidden);
        $result_window->activate();
        Cdk::RefreshCDKScreen;
}
Cdk::end();

Run code and activate item few times, after 3-4 tries, core is dumped:
core dumped. your fault! (signal 11)
Maybe my approach is bad and i didn't read documentation carefully (i am
trying to change scroll list contents after some action, $rw->delete()
or $rw->set('List' ...) and draw() again doesn't work), but i thing, it
should not segfault...

Thanks for correcting the bug or pointing me to good solution of
redrawing changed widgets in Cdk Perl.
Btw. destroy() isn't at all implemented in CdkPerl which is major
blocker for many operations :(

ii  libcdk-dev                            4.9.9-4 C-based curses widget library 
(development f
ii  libcdk-perl                           4.9.7-6 Curses Development Kit for 
Perl
ii  libcdk4                               4.9.9-4 C-based curses widget library
Linux arkeia 2.6.12-9-686 #1 Mon Oct 10 13:25:32 BST 2005 i686 GNU/Linux
This is perl, v5.8.7 built for i486-linux-gnu-thread-multi

Jakub
p.s.: please Cc: replies to me as i am not subscribed to bug-ncurses
mailing list

-- 
Jakub Suchý <address@hidden>
GSM: +420 - 777 817 949

LOGIOS s.r.o, V Podhájí 776/30, 400 01 Ústí nad Labem
tel.: +420 - 474 745 159, fax: +420 - 474 745 160
e-mail: address@hidden, web: http://www.logios.cz




reply via email to

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