« MBS started a Blog | Home | New video »

REALbasic 2009r4 and MBS Plugins

A few users report problems with using older plugins with REALbasic 2009r4.
With REALbasic 2009r4 there was change with Cocoa memory management. So we changed the plugins to work with that in v9.5. And with v9.6 we changed even more to get less leaks.

Please do not use REALbasic 2009r4 and newer with plugins before version 9.5. You can get crashes there which typically show a line with a objc_msgSend call.

With REALbasic 2009r4 the code below should not be needed as REALbasic runtime does automatically handle the NSAutoreleasePools for you. For older REALbasic versions you need to use code with a timer with the action event below to avoid memory leaks.

// in a Timer Action event:
Sub Action()
static LastPool as NSAutoreleasePoolMBS = nil
static CurrentPool as NSAutoreleasePoolMBS = nil

LastPool = CurrentPool
CurrentPool = NSAutoreleasePoolMBS
End Sub

24 10 09 - 23:26
No comments

Remember personal info?

Emoticons / Textile

Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.