View Issue Details

IDProjectCategoryView StatusLast Update
0002816JEDI VCL00 JVCL Componentspublic2005-05-18 07:03
ReporterJohnFrielAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 BETA 2 
Target VersionFixed in Version3.10 
Summary0002816: JvFormStorage for JvColorButton fails on reload when storing Button.Color property.
DescriptionIf a custom color is specified in the JvColorButton and the form has a JvFormStorage component on there to store the Color Property of the button to the registry, when the form is reloaded and that property is read you get:

Project [your project] raised exception class EJclRegistryError with message
'"Software\[your project]\Forms\[dialogname]\properties\JvColorButton1_Color" is of wrong kind or size'.

When you use a custom color, it stores the property as a REG_DWORD, but if you use a normal clXXX color, it stores it as a REG_SZ. I think the code is always looking for REG_SZ and complains if it doesn't see this. However, the color -IS- correctly restored from the REG_DWORD so maybe the exception is something that should be ignored??
TagsNo tags attached.

Activities

JohnFriel

2005-03-29 07:07

reporter   ~0006771

Note: This is with the production 3.00 release. Mantis does not allow picking this as a valid verion.

John

jfudickar

2005-03-29 11:16

developer   ~0006772

I think this is only a DesignTime Error. You can ignore it.

The Registry-Engine realy first look for a string value if an integer value is read. If this fails, the try is started to read the integer value as integer.

I think this exception should be invisible at normal runtime.

Please give me a feedback, if i'm right.

Greetings
Jens

obones

2005-05-18 07:03

administrator   ~0007210

No answers in a timely manner, this is considered to be solved.

Issue History

Date Modified Username Field Change
2005-03-29 07:06 JohnFriel New Issue
2005-03-29 07:07 JohnFriel Note Added: 0006771
2005-03-29 11:16 jfudickar Note Added: 0006772
2005-03-29 11:16 jfudickar Status new => feedback
2005-05-18 07:03 obones Status feedback => resolved
2005-05-18 07:03 obones Resolution open => fixed
2005-05-18 07:03 obones Assigned To => obones
2005-05-18 07:03 obones Note Added: 0007210