[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using SunView from kcl



Sorry for not replying your mail...

"malloc" and "free" (and some other functions) are redefined
in KCL, and the redefined "free" signals an error, if the pointer
passed to "free" is not a pointer created by "malloc".
In SunView (particularly the menu package, as I remember),
an illegal pointer is passed to "free" and "free" signals an
error.  So, this is not an error of KCL but an error of SunView.
In order to avoid this situation, you can remove the code for
signalling an error and just ignore illegal pointers.  Please
delete the line

	FEerror("free(3) error.", 0);

in the function "free" in the file "c/alloc.c".

-- Masami