Re: [Nedit-develop] Re: seg fault with tear-off menus
Brought to you by:
tringali
From: TK S. <tee...@ya...> - 2004-01-11 13:25:15
|
--- Eddy De Greef <edd...@ti...> wrote: > Op 10-01-04 02:30:46 schreef TK Soh: > > --- Eddy De Greef <de...@im...> wrote: > > Volumn 6A did mention we should use XtAppCreateShell for permanent > > windows, but it gave no warnings otherwise. > > > > > So, what we did in the past, namely creating multiple > > > ApllicationShells, was wrong > > > (which was probably the cause for the session management bugs), but > > > what we do now, > > > creating topLevelShells as child widgets, is probably also wrong. > > > > > > When I change my test example to create the toplevel shells with > > > XtAppCreateShell, as the text above says, it doesn't crash any > > > more. > > > > Would switching to XtAppCreateShell defeat the original intention of > > the hierarchy change? > > Perhaps, but I don't know exactly what the problems where that Scott > wanted to tackle. Anyway, the former hierarchy was definitely not > valid. There should have been only one ApplicationShell. > > > If not, perhaps someone can help put in the fix > > please. Honestly, this seg-fault thing is making me very > > uncomfortable. > > > > > BTW: On HPUX/OSF-Motif-2.x, my test case doesn't crash, but Purify > > > complains about some rather serious errors, so the problem is not > > > restricted to OpenMotif. > > > > Any complains when using XtAppCreateShell? In any case, as long as > > it's working, i.e. no crashes, I wouldn't want to worry much about > > them. > > I would. I'm not talking about uninitialized memory reads (of which > I get lots of warnings in Motif) which are often harmless, but about > free memory reads and writes. It is just luck if it doesn't crash. > I didn't get any of those errors when I used XtAppCreateShell (on my > test example, I didn't try it with NEdit). I vaguely remember trying out valgrind on nedit about 18 months back, and also getting some complains about free memory reads and writes. But I didn't know much about nedit-motif-valgrind back then, or even now. My main question is the validity of those complains. Have you tried running Purity on 5.4? __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus |