🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.soft-sys.khoros
Article #1039

Some errors in Khoros

#1039
From: Oliver Grau
Date: Fri, 08 Jan 1993 10:40
69 lines
2354 bytes
I have found some errors in Khoros (Vers.1 PL 5) libraries. I know that there is no 
more support on version 1, but perhaps it helps to fix the buggs in version 2 of
Khoros or someone has the same problemes like me and wants to fix the buggs in
the current version of Khoros.


- Routine "kfread"

in KHOROS_HOME/src/Lib/vgparm/transport.c Line 1135:

	return(num/nitems);

must be:

	return(num/size);

for compatibility with fread and the Khoros manual.


- Routine "kfgets" 

in KHOROS_HOME/src/Lib/vgparm/transport.c Line 1455:

	} while (--i > num);

should be:

	} while (--i > 0 );



The matrix-routines lminvert, lmmult and lmtrans (and perhaps some other)
don't free temporay memory. The effect on multiple calling this routines is,
that the process memory grows. In my case it grows over allowed (virtual) mem size.

-  Routine "lminvert"

in KHOROS_HOME/src/num_analysis/matrix_algebra/minvert/minvert.prog in Line 192 
before the Return-statement the following statement should be included:

	free(mat);


- Routine "lmmult"

in KHOROS_HOME/src/num_analysis/matrix_algebra/minvert/mmult.prog in Line 205
before the assignment "image1->imagedata = (char *)mat;" a free of the
original data should be done:

	free(image1->imagedata);


-  Routine "lmtrans"

in KHOROS_HOME/src/num_analysis/matrix_algebra/minvert/mtrans.prog in Line 173 
before the Return-statement the following statement should be included:

	free(mat);




Oliver
______________________
Dipl.-Ing. Oliver Grau
Inst.fuer Theoretische Nachrichtentechnik                         __
Universitaet Hannover                          _   / .    _  _   / _  _ __  
email: grau@tnt.uni-hannover.de               (_) / / |/ (  /   /__/ / (_/ /_/
Technical Details
Message-ID: <1993Jan8.104040.26663@newsserver.rrzn.uni-hannover.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!howland.reston.ans.net!sol.ctr.columbia.edu!ira.uka.de!Germany.EU.net!urmel.informatik.rwth-aachen.de!solaris.rz.tu-clausthal.de!news!leda!grau

Show Full Headers
Complete Article Headers
Newsgroups: comp.soft-sys.khoros
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!howland.reston.ans.net!sol.ctr.columbia.edu!ira.uka.de!Germany.EU.net!urmel.informatik.rwth-aachen.de!solaris.rz.tu-clausthal.de!news!leda!grau
From: grau@tnt.uni-hannover.de (Oliver Grau)
Subject: Some errors in Khoros
Message-ID: <1993Jan8.104040.26663@newsserver.rrzn.uni-hannover.de>
Sender: news@newsserver.rrzn.uni-hannover.de (News Service)
Reply-To: grau@tnt.uni-hannover.de
Organization: Universitaet Hannover, Theoretische Nachrichtentechnik
Date: Fri, 8 Jan 1993 10:40:40 GMT
Lines: 70