I recently created an application which stores values in the registry. Just recently I found out that some users are having problems because when running the application it apparently crashes because it doesnt have the correct permission to access the registry (I dont have many details about the error yet, so I doint know if it crashed when reading or writing). I did a couple quick googles and yahoos and found info about the registrypermission class, but I cant find any straight forward description of how to use it.
All the examples that I see, create a new instance of a registrypermission object (passing a permission and a registry path into the constructor), but then never do anything with the object! Is this how its used? Does just creating an instance of this object allow the application to access that registry key?
If not, please explain!
Thanks in advance,