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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement