<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Here is a detail on this problem which I did not 
notice before:  When exiting the QScribble program using the menu 
selection:  "File->Exit", the program exits normally and the 
isLastView() method is never called.  However, when the program is exited 
using the "X" on the upperleft box of the application's window, I get the 
problem listed below.</FONT></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A href="mailto:jic@atl.meitca.com" title=jic@atl.meitca.com>Johnas @ Work</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  href="mailto:kdevelop@barney.cs.uni-potsdam.de" 
  title=kdevelop@barney.cs.uni-potsdam.de>kdevelop@barney.cs.uni-potsdam.de</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, April 27, 2000 5:12 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Segmentation fault on exit</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>I recently resolved problems with creating and 
  debugging a KDE MDI project (KScribble example) using KDE2.  So, I moved 
  on to creating and debugging a Qt MDI project (QScribble example which is the 
  same as the KScribble example only created by choosing Qt MDI project in the 
  wizard).  I overcame two problems when the linker could not find the 
  libqt.so.2 library.  I created a link to the Qt 2.1 library (in the 
  /usr/lib/qt-2.1.0/lib directory).  Also, the autoconf warned about not 
  finding the KDE2 libraries, so I added "--prefix=/opt/kde2".  That seemed 
  to solve the build.  The program runs fine until I decide to exit.  
  When simply running the program I get a segmentation fault error.  When I 
  run the debugger, the debugger stops at the "isLastView()" method.  The 
  status line says:  "No source:  0x804fffa in 
  QScribbleDoc::isLastView (this=0x1) at qscribbledoc.cpp:73".  I 
  understand that the this pointer (=0x1) is invalid.  I did not touch this 
  part of the code (it was generated by the wizard).  If I close the child 
  window within the app, the same routine is called with a valid pointer.  
  This does not happen in the KDE MDI project (KScribble).  The two 
  (KScribble and QScribble) source codes are almost identical.  Is this a 
  bug or am I missing something?</FONT></DIV>
  <DIV> </DIV>
  <DIV><FONT face=Arial size=2>Appreciate any help.</FONT></DIV>
  <DIV> </DIV>
  <DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
  <DIV> </DIV>
  <DIV><FONT face=Arial size=2>Johnas  Cukier<BR>Principal Technical 
  Staff<BR>Mitsubishi Electric ITA<BR>571 Central Avenue, Suite 115<BR>New 
  Providence, NJ 07974<BR>Phone:  (908)665-1200 ext. 
  20<BR>FAX:    (908)665-2414<BR>email:  <A 
  href="mailto:jic@atl.meitca.com">jic@atl.meitca.com</A><BR> </FONT></DIV></BLOCKQUOTE></BODY></HTML>