Intermittent failure by VBScript returns -1073741819 on W2K8 R2
All , I have a small VBscript that returns the count of drives that does not have 'NTFS' formatting.
I am encountering an issue on Windows 2008 R2 platform and is intermittant.Sometimes VBscript works sometimes it doesnt.When it does not run properly, VBScript returns -1073741819.
In the script ,A variable is initialized to zero and then for each local filesystem thats not 'NTFS' we increment it and at the end return the value of that variable using WScript.Quit variable.
From another forum I learnt :"The error number -1073741819 in hex is 0xC0000005 which indicates an access violation in windows. An access violation means your process has tried to access memory that does not belong to it."