MATLAB: Do I receive an error message in PolySpace Server for C/C++ 7.1 (R2009b) on a Windows machine

locationNetworknetwork-drivePolyspace Code ProverPolyspace Code Prover Server

I have mapped a network location (\\network\location\) to a mapped drive (R:\) on my Windows machine. I am able to create directories and files on this drive.
However, when I attempted to use the Remote Launcher Manager to reset the Data Directory to the 'R:' drive, I received the following error:
Removing the polyspaced service...
*******************************************
* Checking QueueManager configuration... *
*******************************************
Host : usmcdsa0psp01
User : NAM\SI_NAM_PLYSPC_SVR_01
Checking files locations...
- data directory (R:\)
==================================================
=> An error occured while checking configuration.
==================================================
Warning: Unable to set permissions on "R:\".
Error: Could not set permissions on "R:\".
Warning: Unable to set permissions on "R:\".

Best Answer

The issue is not specific to PolySpace. This issue is due to the fact that you are accessing a network folder by its mapped drive letter. When a Windows service starts, the network drives are not mounted and the services can not access them. This is the reason why the Remote Launcher daemon does not start.
To work around this issue, use the whole UNC path (\\network\location\) instead of the mapped drive (R:\). If you use the UNC path, the daemon will start properly.
Note that it is not recommended to use a network drive as the data directory due to following reasons:
1. Performance : Using a network drive will slow down the verifications
2. Stability : Networks are often unstable and suffer from micro-cuts. This may cause some sporadic I/O failures