Newsgroups: comp.parallel.pvm
From: erd@regent.e-technik.tu-muenchen.de (Eric Doenges)
Subject: Re: Error in pvm_mkbuf() ?
Organization: Technische Universitaet Muenchen, Germany	
Date: 4 Jul 1995 11:44:23 GMT
Message-ID: <3tb9in$6tr@sunsystem5.informatik.tu-muenchen.de>

necker@ind.e-technik.uni-stuttgart.de (Thomas Necker) writes:

>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

You were right, that was the mistake, pvm_mkbuf() is not to blame. Thanks for
the suggestion, otherwise I'd probably still be searching for the error.
--
                                                                          (__)
     _/_/_/ _/_/   _/_/                                                   (oo)
    _/     _/ _/  _/ _/  Eric Doenges                             /--------\/
   _/_/   _/_/   _/ _/   (erd@regent.e-technik.tu-muenchen.de)   * o|     ||
  _/     _/ _/  _/ _/                                               ||----||
 _/_/_/ _/  _/ _/_/                                              ooo~~    ~~

