The Generic Unload Action

	#include "ofxCore.h"
	#define kOfxActionUnload "OfxActionUnload" 

kOfxActionUnload is the last action passed to the plug-in before the binary containing the plug-in is unloaded. It is there to allow a plug-in to destroy any global data structures it may have created.


The handle , inArgs and outArgs arguments to the main entry are redundant and should be set to NULL.


  • the kOfxActionLoad action has been called
  • all instances of a plugin have been destroyed


No other actions will be called.

Return Values

  • kOfxStatOK, the action was trapped all was well
  • kOfxStatReplyDefault, the action was ignored
  • kOfxStatErrFatal, in which case we the program will be forced to quit