using windows...
(a file browsing problem)
I could be doing it wrong but when i try to open a drive that has the media not loaded or inserted the program crashes with a message
(Uncaught exception: Failed to open file for writting D:/window_position.dat)
Dir$="d:\" <-this drive letter was found using CountWindowsDrives() and getting it from GetWindowsDrive(x)
SetRawWritePath( dir$)
id=OpenRawFolder(dir$)
<crashes here
is there a way to find out if a disc or sd card is loaded into the drive slot before trying to search for files and folders on a found drive? it crashes if nothing is found in the drive.
edit: i also want to mention that window_position.dat is an auto generated file from using agk..... nowhere in my program am i trying to write or access this file.