Newsgroups: comp.parallel.pvm
From: necker@ind.e-technik.uni-stuttgart.de (Thomas Necker)
Subject: Re: Error in pvm_mkbuf() ?
Organization: University of Stuttgart, IND (Germany)
Date: 28 Jun 1995 16:35:50 GMT
Message-ID: <3ss0d6$1i1g@info4.rus.uni-stuttgart.de>

I'm not an expert in using pvm_mkbuf but I had the same problem of an object
getting corrupt in some routines I had programmed myself sometimes.
These routines worked definitely ok and the problem always turned out to be the
following: I had freed the memory of the object but still used a pointer on it.
Everything works fine until some completely different routine allocates
dynamic memory and afterwards overwrites your object that doesn't officially
exist anymore. These errors are tricky because their effects turn up far away
from their cause. You have to check all places where the object could be
deleted or use a tool like Purify that normally finds such errors.

Hope this helps

Thomas

-------------------------------------------------------------------------------
Thomas Necker
University of Stuttgart
Institute of Communications Switching and Data Technics
Seidenstr. 36
70174 Stuttgart
Germany

Tel. : +49 711 121 2475
Fax  : +49 711 121 2477
EMail: necker@ind.uni-stuttgart.d400.de
-------------------------------------------------------------------------------

