CFunction.Release
-----------------

Releases the function and all memory used for it.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CFunction](component_CFunction.md) | [10.3](newinversion103.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CFunction.Release"; FunctionRef ) 

**MBS**( **"CFunction.Release";** /\* Releases the function and all memory used for it. \*/  
**$FunctionRef**) /\* The reference number for the function.e.g. $func \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| FunctionRef | The reference number for the function. | $func |

### Result

Returns OK or error.

### Description

Releases the function and all memory used for it.  
Please call this when you are done with a function.  
### See also

- [CFunction.Call](CFunctionCall.md)
- [CFunction.List](CFunctionList.md)
- [CFunction.ReleaseAll](CFunctionReleaseAll.md)
- [CLibrary.ReleaseAll](CLibraryReleaseAll.md)

### Release notes

- **Version 10.5**
    - Added [CFunction.ReleaseAll](https://www.mbsplugins.eu/CFunctionReleaseAll.shtml), [CGImageSource.ReleaseAll](https://www.mbsplugins.eu/CGImageSourceReleaseAll.shtml), [CLibrary.ReleaseAll](https://www.mbsplugins.eu/CLibraryReleaseAll.shtml), [DynaPDF.ReleaseAll](https://www.mbsplugins.eu/DynaPDFReleaseAll.shtml), [ECKey.ReleaseAll](https://www.mbsplugins.eu/ECKeyReleaseAll.shtml), [FSEvents.ReleaseAll](https://www.mbsplugins.eu/FSEventsReleaseAll.shtml), [MarkDown.ReleaseAll](https://www.mbsplugins.eu/MarkDownReleaseAll.shtml), [MenuItem.ReleaseAll](https://www.mbsplugins.eu/MenuItemReleaseAll.shtml), [SendMail.ReleaseAll](https://www.mbsplugins.eu/SendMailReleaseAll.shtml), [Shell.ReleaseAll](https://www.mbsplugins.eu/ShellReleaseAll.shtml), [SmartCard.ReleaseAll](https://www.mbsplugins.eu/SmartCardReleaseAll.shtml), [TouchBar.ReleaseAll](https://www.mbsplugins.eu/TouchBarReleaseAll.shtml), [UserNotification.ReleaseAll](https://www.mbsplugins.eu/UserNotificationReleaseAll.shtml), [WMFP.ReleaseAll](https://www.mbsplugins.eu/WMFPReleaseAll.shtml), [WMIQuery.ReleaseAll](https://www.mbsplugins.eu/WMIQueryReleaseAll.shtml) and [WindowsUserNotification.ReleaseAll](https://www.mbsplugins.eu/WindowsUserNotificationReleaseAll.shtml).

### Blog Entries

- [Calling C functions from FileMaker](https://www.mbsplugins.de/archive/2024-01-09/Calling_C_functions_from_FileM/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 25th April 2020 , last changed 25th April 2020

  
[CFunction.ParameterType](CFunctionParameterType.md) - [CFunction.ReleaseAll](CFunctionReleaseAll.md)

[HTML Version](CFunctionRelease.shtml)