[Top][All Lists]

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

Re: [Bug-gnubg] Unload gnubg

From: Joern Thyssen
Subject: Re: [Bug-gnubg] Unload gnubg
Date: Mon, 7 Apr 2003 19:41:17 +0000
User-agent: Mutt/1.4i

On Mon, Apr 07, 2003 at 12:24:23PM -0700, Jaro wrote
> Hi folks,
> I have built the gnubg DLL. I'm using this dll from another dll, call
> it X.DLL.  I'm not using the gnubg DLL with LoadLibrary, etc.; I'm
> using it through a .lib.
> When I unload X.DLL, I want the gnubg DLL to unload, too, but right
> now it isn't.  I'm thinking that perhaps if I told the gnubg DLL to
> clean up all its resources and uninitialize itself then maybe it would
> unload properly.  How can I "uninitialise" the gnubg DLL, being sure
> to close all resources, release all memory, etc?

Hmm, currently there is not!

In eval.c you'll find the function EvalShutdown. Change it to:

extern int
EvalShutdown ( void ) {

  int i;

  /* close bearoff databases */

  BearoffClose ( pbc1 );
  BearoffClose ( pbc2 );
  BearoffClose ( pbcOS );
  BearoffClose ( pbcTS );

  /* destroy neural nets */


  /* destroy cache */

  CacheDestroy( &cEval );

  return 0;


This should free resources used by EvalInitialise.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]