tkperl5a4 dumping core on menu calls 
Author Message
 tkperl5a4 dumping core on menu calls


Quote:

>Hello all,

>I'm running tkperl5a4 under perl5b2 on a SunOS 4.3.1 system.

>Everything works great except for menu buttons, which dump
>core with a segmentation fault on a mouse down event.

Look at PathnameToWref() in util.c. Remove the line
    static char class[256] = "::_";
and change the lines
    winPtr = (TkWindow *) Tk_NameToWindow(tclinterp, pathname, mainwin);
    strcpy(class + 3, winPtr->classUid);
    return NewWidgetRef(pathname, GvHV(gv_fetchpv(class, FALSE, SVt_PVHV)));
to
    return NewWidgetRef(pathname, gv_stashpv(winPtr->classUid, FALSE));

--Malcolm

--

Oxford University Computing Services
"Widget. It's got a widget. A lovely widget. A widget it has got." --Jack Dee



Sat, 15 Mar 1997 02:27:32 GMT  
 tkperl5a4 dumping core on menu calls
        Uh...  this fix works...  but still core dumps is the
        menutest window is killed after a menu selection was made.

        If the "Exit" was used,  it's ok... no core dumps.

---
---------------------------_----------------------------------------------


4640 SW Macadam Ave.   | | | | |    VOICE: [USA] 1+503.228.1400 x251
Portland, OR 97201     | | | | |    FAX:   [USA] 1+503.228.0368
--------------------------------------------------------------------------



Sun, 16 Mar 1997 05:48:04 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. tkperl5a4 dumping core on menu calls

2. exit called in BEGIN gives core dump

3. ORAPERL system call core dump

4. PERLFUNC: dump - create an immediate core dump

5. PERLFUNC: dump - create an immediate core dump

6. glob failed (child exited with status -1, core dumped)

7. Perl 4.036 dump core on Alpha - a reason and a fix

8. perl5.000 build on OSF 1.3 core dumped

9. perl 5.000 defect: core dump

10. tkperl - core dump

11. core dump: perl4 on Motorola 68030

12. $anything->configure() core dumps

 

 
Powered by phpBB® Forum Software