Safe place to store user-defined parameters, Pt 2, bug?
-
To all,
Well, back to the user data/options/preferences storage issue. I use an ini that is included with the plugin I author.
The previous thread
http://sketchucation.com/forums/viewtopic.php?f=180&t=52730
was interesting, especially the info posted by thomthom about Unicode issues.
I wasn’t that concerned with most of the discussion, since with Vista, 7 and probably 8, windows will create a file in the VirtualStore if one writes to the ini file. This works in both SU7 & SU8. If someone is still using XP, I assume they’re probably using an admin user account.
So I’m testing the code with SU2013. It does not save a file to the VirtualStore, and generates an error if you try to write to the file.
Also interesting, in SU2013, the Ruby code
File.writable?(sIniFile) returns true, but the following line
File.open(sIniFile, "w") generates an error.
More interesting is that SU8 and SU2013 appear to use the same version of msvcrt-ruby18.dll.
Has anyone noticed this issue?
Thanks,
Greg
Advertisement