PlatformNotSupportedException
From Real Software Documentation
Class (inherits from RuntimeException)
Raised if a method is only for a particular platform but it was called from another platform. It was added in Real Studio 2010r5. The functions FolderItem.MacFSRef and FolderItem.CreateFromMacFSRef raise this exception if called from Windows or Linux.
Example
Real Studio will throw a PlatformNotSupportedException if you call a method that on Carbon that is supported only on Cocoa. For example, this example will throw an exception from a Carbon build because alpha channels are supported on Cocoa, not Carbon. You can fix this by setting the target platform in the Build Settings dialog box.
dim width as integer = 2000
dim height as integer = 2000
// creates new picture
dim pic as new Picture(width, height) //constructor for a picture with an alpha channel
dim f as FolderItem
f=GetOpenFolderItem("image/jpeg")
if f<> Nil then
pic=Picture.Open(f)
ImageWell1.Image=pic
end if
exception err as PlatformNotSupportedException
MsgBox err.message
dim height as integer = 2000
// creates new picture
dim pic as new Picture(width, height) //constructor for a picture with an alpha channel
dim f as FolderItem
f=GetOpenFolderItem("image/jpeg")
if f<> Nil then
pic=Picture.Open(f)
ImageWell1.Image=pic
end if
exception err as PlatformNotSupportedException
MsgBox err.message
See Also
FolderItem.CreateFromMacFSRef, FolderItem.MacFSRef, RuntimeException.
