Platforms to show: All Mac Windows Linux Cross-Platform
Back to CallDelegatesMBS module.
CallDelegatesMBS.CallDelegateOnMainThreadMBS(m as _delegateMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Process | MBS Util Plugin | 14.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
We call the delegate on the main thread later with passing a parameter
Our plugin supports various combinations of up to 2 parameters of type string, variant, boolean, double, integer and object.
If you need more, please contact us.
Only supported on Xojo 2013r1 and newer.
If the method you call has optional parameters, you must pass all values or Xojo will throw a compile error.
CallDelegatesMBS.CallDelegateOnPreemptiveThreadMBS(m as _delegateMBS) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Process | MBS Util Plugin | 23.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Experimental function to play with preemptive-threads in Xojo apps.
Some rules:
- No objects, no strings, no arrays
- Use Ptr, not Memoryblocks
- Crashes in debugger, so only use in built app
- Use #Pragma BackgroundTasks False
- Use #Pragma BreakOnExceptions False
- Use #Pragma StackOverflowChecking False
- Use #Pragma NilObjectChecking False
- No exceptions
- Delegate must be stored in global variable to avoid it getting freed early.
- You can pass up to one ptr as data parameter.
- Declares may work, but should be pre-used to make sure they don't raise an exception and are loaded.
uses thread pool on iOS, macOS and Windows. Otherwise regular threads.
See also:
CallDelegatesMBS.CallDelegateOnPreemptiveThreadMBS(m as _delegatePtrMBS, data as Ptr) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Process | MBS Util Plugin | 23.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Experimental function to play with preemptive-threads in Xojo apps.
Some rules:
- No objects, no strings, no arrays
- Use Ptr, not Memoryblocks
- Crashes in debugger, so only use in built app
- Use #Pragma BackgroundTasks False
- Use #Pragma BreakOnExceptions False
- Use #Pragma StackOverflowChecking False
- Use #Pragma NilObjectChecking False
- No exceptions
- Delegate must be stored in global variable to avoid it getting freed early.
- You can pass up to one ptr as data parameter.
- Declares may work, but should be pre-used to make sure they don't raise an exception and are loaded.
uses thread pool on iOS, macOS and Windows. Otherwise regular threads.
See also:
The items on this page are in the following plugins: MBS Util Plugin.