Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#352 closed Bug (Works For Me)

v3.2.12.0 + RegRead (REG_MULTI_SZ)

Reported by: Stéphane Owned by:
Milestone: Component: AutoIt
Version: 3.2.12.0 Severity: None
Keywords: Cc:

Description

if you try to read a REG_MULTI_SZ realy big key > 255 chars, RegRead returns nothing and @error is set to -2, smaller keys are read correctly

Attachments (0)

Change History (6)

comment:1 by J-Paul Mesnage, 18 years ago

can you give an example using an existing key in the registry?
Thanks

comment:2 by J-Paul Mesnage, 18 years ago

$keyname = "HKCU\Test"
$value="1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" & @LF
$value&="1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"
$value&="1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"
$value&="1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"
$RegWrite = RegWrite($keyname,"RegMultiSz","REG_MULTI_SZ",$value)
$RegRead = RegRead($keyname,"RegMultiSz")
MsgBox(262144,'Debug line ~' & @ScriptLineNumber,'Selection:' & @lf & '$RegRead' & @lf & @lf & 'Return:' & @lf & $RegRead & @lf & @lf & '@Error:' & @lf & @Error) ;### Debug MSGBOX
$RegDelete = RegDelete($keyname)

That's working perfect under Vista SP1. So you understand that" you need to follow directive as how to write a bug ticket

comment:3 by Jon, 18 years ago

I think we limit reg operations to 64KB. Might be worth rewriting/checking if this is the case.

in reply to:  3 comment:4 by J-Paul Mesnage, 18 years ago

Replying to Jon:

I think we limit reg operations to 64KB. Might be worth rewriting/checking if this is the case.

So that's nothing to do with a 255 char limit ...

comment:5 by Valik, 18 years ago

Resolution: Works For Me
Status: newclosed

Your report is confusing. Here's what I can say.

If you really do mean "key", then yes, a limit of 255 is correct. Each key name can only be 255 characters. The full path can be longer than 255 characters but any one individual key name can only be 255 characters. This does not appear to be a bug, although I can't find mention in a quick scan of MSDN.

If you mean the size of the data a value can hold, then it's definitely not limited at 255. Since you mention REG_MULTI_SZ, you may be experiencing an issue with an improperly formatted data. This would not be an AutoIt bug, either.

Without a proper script to reproduce the issue and without clarification of the terminology which is rather critical, there's nothing to do but close this as works for me. I tried a few things and could not reproduce what you describe.

comment:6 by Valik, 18 years ago

Alright, I found the registry size limits which confirm what I said:
http://msdn.microsoft.com/en-us/library/ms724872(VS.85).aspx

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.