G
Guest
I have found what I can only conclude to be a bug in .net after days of
messing around. I am trying to assign a large value to a registry dword
entry close to it's limit of 4294967295 or 0xFFFFFFFF
I have tried making the call through vb.net and c# and it produces the same
result. I am assigning the value like so:
uint myVar = 4294967295
Microsoft.Win32.Registry.LocalMachine.SetValue(VideoSettingsKey &
"RecordingSoftPostPadding",myVar,Microsoft.Win32.RegistryValueKind.DWord)
which fails with a conversion failure, I SHOULD be able to assign a uint
value though. I can successfully assign an int value (smaller of course)
without a problem, but int does not cover the range of values which can be
contained in a regisry dword, only a uint can cover that range.
messing around. I am trying to assign a large value to a registry dword
entry close to it's limit of 4294967295 or 0xFFFFFFFF
I have tried making the call through vb.net and c# and it produces the same
result. I am assigning the value like so:
uint myVar = 4294967295
Microsoft.Win32.Registry.LocalMachine.SetValue(VideoSettingsKey &
"RecordingSoftPostPadding",myVar,Microsoft.Win32.RegistryValueKind.DWord)
which fails with a conversion failure, I SHOULD be able to assign a uint
value though. I can successfully assign an int value (smaller of course)
without a problem, but int does not cover the range of values which can be
contained in a regisry dword, only a uint can cover that range.