Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1    Statistic    FMM    Blog  

Plugin.PrepareForUpdate

Prepares plugin for an update.

Component Version macOS Windows Linux Server FileMaker iOS SDK
Plugin 11.1 ✅ Yes ❌ No ❌ No ✅ Yes ❌ No
MBS( "Plugin.PrepareForUpdate" )   More

Parameters

none

Result

Returns OK or error.

Description

Prepares plugin for an update.
MBS Plugin prevents FileMaker from unloading itself to avoid crashes with Cocoa runtime system.
e.g. one plugin loads, registers a class. Then it may get deactivated and unloads. Later a newer plugin in a different version loads, and tries to use the class registered before. Since the first plugin is unload, all pointers are invalid and the application crashes.
This function disables this feature, so a newer plugin may load.

Release notes

  • Version 11.1
    • Added Plugin.PrepareForUpdate function.

Created 16th February 2021, last changed 16th February 2021


Plugin.Path   -   Plugin.ScriptStepParameter

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins

Start Chat