Go Back   AC3D Forums > Technical > AC3D Developers
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
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
Old 23rd March 2005, 03:44 PM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,450
Default

You are not doing anything wrong.

There's currently no facility to 'unload' a plugin.

Andy
Andy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 11:59 AM.


AC3D Forum
(C) Inivis Limited 2020