View Single Post
Old 23rd March 2005, 02:10 PM   #1
Dennis
Senior Member
Professional user
 
Dennis's Avatar
 
Join Date: Jul 2003
Posts: 899
Default AC3DPluginExit question

Hi Andy/all

Under what condition is AC3DPluginExit() called?

Code placed here never seems to be executed during the lifespan of my AC3D session. AC3DPluginInit() and others (info/about) are called without problem.

I'm using AC3D version 5, compiling on a Windows platform (xp pro). Here is my function:

Code:
AC3D_PLUGIN_FUNC int AC3DPluginExit()
{
   printf( "Plugin exit\n" );
   FILE *fp = fopen( "C:\\x.txt", "w" );
   fprintf( fp, "Hello!" );
   fclose( fp );
   return 0;
}
Of course, no file is written, and no message appears on the console after AC3D shuts down.

Am I doing something wrong here?

Regards,
Dennis
Dennis is offline   Reply With Quote