Re: XForms: Wierd Seg Fault..

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 17 Sep 98 06:20:43 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> Now what I do when the user clicks on a next button on any one of the
> forms is a fl_hide_form (obj->form); I do not fl_free_form because I still
> would like to be able to access the data the user entered in the previous
> form (ie: fl_get_browser_line() and so on).
>
> Would this be causing some nifty memory leak that would contribute to my
> problem? I am running out of ideas!

No. It shouldn't. I have several pieces of code where I access data
on forms which have been hidden and they operate flawlessly.

What information is your memory debug malloc() toolset capable of
giving you? Is the toolset documented somewhere and/or available on
the web.

Again, I strongly recommend the libdbmalloc. It is *very* useful in
tracking down a number of errors. I recommend it so highly, I've made
it available at my FTP site:

ftp://ncmir.ucsd.edu/pub/libdbmalloc/libdbmalloc.tgz

or

ftp://ncmir.ucsd.edu/pub/libdbmalloc/libdbmalloc.tar.Z

>From the README:

# (c) Copyright 1990,1991,1992 Conor P. Cahill. (uunet!virtech!cpcahil)
# You may copy, distribute, and use this software as long as this
# copyright statement is not removed.

This package is a collection of routines which are a drop-in replacement
for the malloc(3), memory(3), string(3), and bstring(3) library functions.
These replacement modules are different from the original modules in that
they provide a full set of debugging features which detect malloc
memory overruns and other types of misuse.

The software has been developed for UNIX systems and should be somewhat
portable amongst them. Your mileage will vary on other architectures.

You're on your own building and installing -- I didn't write it and I
take no responsibility for it. Having said that, I had no problem
building or installing on SunOS 4.1.x, Solaris 2.6, or IRIX in any
flavor from 4.0.5 to 6.2. There may be a more recent version out on
the Web somewhere.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/