sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    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

      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
      • First post
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement