I have not been here for some time, but have recently stumbled across an issue that seems to only show up once the NB pub has been compiled and then run on a Windows 7 system that has a multi card reader attached.
The issue I'm getting is when I need to generate a list of drives that are connected to the PC so the NB pub can locate a device once its been connected.
This piece of code works well, so has been created as a function, I simply call the function and it does just what I need.
- Code: Select all
SetVar "[DriveList]" "CDEFGHIJKLMNOPQRSTUVWXYZ"
StrLen "[DriveList]" "[DriveListLen]"
Loop "1" "[DriveListLen]" "[Cnt]"
SubStr "[DriveList]" "[Cnt]" "1" "[DriveLetter]"
FileList "[DriveLetter]:" "" "[FileData]"
If "[LastError]" "=" ""
Math "[DriveNum]+1" "" "[DriveNum]"
SetVar "[Arrayofdrives[DriveNum]]" "[DriveLetter]:"
Endif
EndLoop
I have also used the following plugin to see if this would fix my issue.
- Code: Select all
rlGetAllDisk "[Arrayofdrives]" "[DriveNum]"
Both the options above work fine during debug mode but once compiled and then run live, although all the connected drives are listed okay and the NB pub can locate a device once its been connected as I want it too, so I know the code is not at fault but if there is multi card reader connected that has any empty slots, I get a repeating error, I think it is generated by Windows and it states:
There is no disk in the drive. Please insert a disk into drive
\Device\Harddisk2\DR2
With options to Cancel, Try Again and Continue.
I can click any of the options and the pub then continues until the next empty slot is detected and so on until all drive letters have been added to the array.
Now that my issue has been detailed, on to my question. (Note: NeoBook v5.8.4 is being used)
Is there anything I can do, apart from making sure all the multi card reader slots are not empty! to stop this error from appearing all the time? Its a little annoying when it appears 7 or 8 times each time the function is used.
Any Thoughts

Many Thanks for your time and hopefully someone may have a solution that will help.

Paul