on MacOS. I have an attached drive identified as WPP with several folders on it but the one of interest is “Images”. I want the user to browse the contents of a subfolder of Images (called “WPPThumbnails”.
in a Method I have the following code (along with some other stuff I have deleted, but this is the essential part)
var fiThumbs As FolderItem
var fiTemp As FolderItem
var dlgImage As OpenFileDialog
var sPath As String
sPath = “/Volumes/WPP/Images/WPPThumbnails/” (sPath is actually calculated - not a constant)
fiTemp = New FolderItem(sPath, FolderItem.PathModes.Native)
dlgImage.InitialFolder = fiTemp
I then get a nil Exception ( **An exception of class NilObjectException was not handled.*). Except when I examine fiTemp it’s not nil. It points to the correct folder. Also not sure what the “count” property of the folder item is but if it is the number of items in the folder then it is correct. Its value is 1 and there is one item in the folder.
all help greatly appreciated