What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » RegWrite Causing Errors?

Pages: (3): « First « 1 2 [ 3 ] Last »
RegWrite Causing Errors?
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. RE: RegWrite Causing Errors?
quote:
Originally posted by CookieRevised
quote:

Originally posted by SpunkyLoveMuff
One thing that does concern me is about a character limit in the registry value... Will I need to eventually just switch to a text file?


no worries I'd say... The character limit of a REG_SZ registry value is way bigger than what you'll ever need for a nickname or something though.

Well, I'm using one REG_SZ for EVERY email and nickname, which I'm guessing is gonna be a problem at some stage :p
<Eljay> "Problems encountered: shit blew up" :zippy:
09-15-2006 10:52 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RegWrite Causing Errors?
quote:
Originally posted by SpunkyLoveMuff

Well, I'm using one REG_SZ for EVERY email and nickname, which I'm guessing is gonna be a problem at some stage :p
No it isn't...

Size limit of a registry value name

In Windows 95/98/ME, the size limit for a value name is 255 characters
In Windows XP this can be up to 16383 characters long.
In Windows 2000, a maximum of 260 Ansi or 16383 Unicode characters may be used in the name of a value.

Size limit of value data

In Windows 95/98/ME, the limit for all types is either 16300 bytes or 64Kb (depends on what source... and I haven't tested this).
In Windows NT/2000/XP, there is no limit as long as your memory can handle it. Except for REG_BINARY and REG_MULTI_SZ values which can 'only' hold 64Kb of data. However, the bigger the size the slower it is to read of course.

Microsoft recommends that data which is more than 2048 bytes big should be stored in a file and only be called from the registry when it is absolutely needed.

Note that these sizes are internal limits. Programs are often way more restricted. eg: Windows regeditor forces smaller sizes. eg: in Windows XP, the name of a registry subkey can only be 209 characters long, the name of a value can only be 259 characters long  (the value itself can still be almost 64000 bytes though). A common size limit which is often (wrongfully!) forced by programs is 1024 bytes.


Anyways, you really shouldn't be worried about registry size limits in your case. However you should be worried about the slowness of updating that listview at some stage with such sizes (I know I keep getting back on this, but it is kind-of important if you want a fast working script and not slowing other things (other scripts) down).

;)

note: figures provided by different sources (which I can't remember). So there is a slight chance they may not be absolute. Though if they aren't totally correct, they are certainly extremely close.


-----------

PSS: don't store the emails of the contacts in the registry either for the same reason why you shouldn't use the user's email, but rather his userid.

For other emails than the user's email, you can calculate the userid by using the msnID function as described here.

(btw, this is also the same as what Plus! does, and for the same reason. It doesn't store the emails of contacts in the registry either, it uses a hash to store them)

This post was edited on 09-16-2006 at 01:36 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-15-2006 10:57 PM
Profile PM Find Quote Report
Pages: (3): « First « 1 2 [ 3 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On