🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #48

Program crashes in ivDialog::Accept ()?

#48
From: Shailesh M. Potnis
Date: Mon, 02 Nov 1992 19:17
36 lines
2952 bytes
This is a repost of my previous mail.  I am using a combination of 3.0 and 2.6
classes.  The entire application except dialogs uses 3.0.  The part of the app
which deals with dialogs uses 2.6.  I am using CenterLine CC on sun os4.1.0.
HowAsker is a class derived from Dialog.  
HowAsker has a function post which displays the dialog and gets the
appropriate info from the users.  The program crashes if the same info is 
displayed again in the enclosed string editors.   I am also wondering why
the iv2_6_ prefix is not used instead of iv.  I have included the appropriate
/2.6/InterViews files and also the file /2.6/_enter.h.  The info returned
by the two stringeditors is copied in to separate strings allocated from the 
heap.   The core dump follows.

XTextWidth() at "/usr/X11R5/lib/libX11.a(XTextExt.o)", pc = 0xa7d220 
ivCanvasRep::flush() at "/usr/local/interviews/lib/SUN4/libIV.so.3.0", pc = 0xf73c1c28 
ivCanvasRep::finish_repair() at "/usr/local/interviews/lib/SUN4/libIV.so.3.0", pc = 0xf73c1a8c 
ivWindow::repair() at "/usr/local/interviews/lib/SUN4/libIV.so.3.0", pc = 0xf73e3ba8 
ivDisplay::repair() at "/usr/local/interviews/lib/SUN4/libIV.so.3.0", pc = 0xf73c9acc 
ivDisplay::get() at "/usr/local/interviews/lib/SUN4/libIV.so.3.0", pc = 0xf73cae58 
ivSessionRep::check() at "/usr/local/interviews/lib/SUN4/libIV.so.3.0", pc = 0xf736a060 
ivSession::read() at "/usr/local/interviews/lib/SUN4/libIV.so.3.0", pc = 0xf7369dcc 
ivEvent::read() at "/usr/local/interviews/lib/SUN4/libIV.so.3.0", pc = 0xf73cbac0 
ivInteractor::Read() at "/usr/local/interviews/lib/SUN4/libIV.so.3.0", pc = 0xf7323554 
ivDialog::Accept() at "/usr/local/interviews/lib/SUN4/libIV.so.3.0", pc = 0xf7310428 
HowAsker::post(this = (class HowAsker *) 0xb7c310 /* register */, window = (class ivWindow *) 0x0, initial1 = (char *) 0xf7ff71b0 "spring tension", target_str = (char *) 0xf7ff71d0 "34 ft lb", dir = (int *) 0xf7ff7190) at "/tmp_mnt/usr07/qfd/qfdcode/dialog.c":440 
How::manipulate(this = (class How *) 0xaab7a0 /* register */, e = (class ivEvent *) 0xf7ff734c) at "/tmp_mnt/usr07/qfd/qfdcode/how.c":174 
Hoq::event(this = (class Hoq *) 0x29b970 /* register */, e = (class ivEvent *) 0xf7ff734c) at "/tmp_mnt/usr07/qfd/qfdcode/hoq.c":92 
ivEvent::handle() at "/usr/local/interviews/lib/SUN4/libIV.so.3.0", pc = 0xf73cbe78 
ivSession::run() at "/usr/local/interviews/lib/SUN4/libIV.so.3.0", pc = 0xf7369bb4 
ivSession::run_window() at "/usr/local/interviews/lib/SUN4/libIV.so.3.0", pc = 0xf7369c6 


	All helpful suggestions are highly appreciated.

	Thanks in advance.

	Shailesh
Technical Details
Message-ID: <2377@h.cs.wvu.wvnet.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!haven.umd.edu!cs.wvu.wvnet.edu!smp

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!haven.umd.edu!cs.wvu.wvnet.edu!smp
From: smp@cs.wvu.wvnet.edu (Shailesh M. Potnis)
Newsgroups: comp.windows.interviews
Subject: Program crashes in ivDialog::Accept ()?
Message-ID: <2377@h.cs.wvu.wvnet.edu>
Date: 2 Nov 92 19:17:13 GMT
Organization: WVU Statistics and Computer Science
Lines: 39