• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Safe place to store user-defined parameters, Pt 2, bug?

Scheduled Pinned Locked Moved Developers' Forum
1 Posts 1 Posters 134 Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    MSP_Greg
    last edited by 9 Jul 2013, 03:00

    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

    1 Reply Last reply Reply Quote 0
    • 1 / 1
    1 / 1
    • First post
      1/1
      Last post
    Buy SketchPlus
    Buy SUbD
    Buy WrapR
    Buy eBook
    Buy Modelur
    Buy Vertex Tools
    Buy SketchCuisine
    Buy FormFonts

    Advertisement