View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002728 | JEDI VCL | 00 JVCL Components | public | 2005-03-09 03:56 | 2005-04-11 03:48 |
Reporter | ArnoldMaarel | Assigned To | outchy | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.00 BETA 2 | ||||
Target Version | Fixed in Version | 3.10 | |||
Summary | 0002728: Storing integer properties in an JvFormStorage wich are negative | ||||
Description | I added in a JvFormStorage extra properties to store in the Registry. This property was a dbgrid.columns. This also makes saving the height of de font property which is negative. This causes a range check error. I use JVCLRC1. Do I something wrong with it, or is it a bug ? | ||||
Tags | No tags attached. | ||||
|
Could you please create a small sample app and it to this bug entry. |
2005-03-10 03:34
|
Project1.cfg (526 bytes) |
2005-03-10 03:34
|
Project1.dpr (188 bytes) |
2005-03-10 03:34
|
Unit1.dfm (1,375 bytes) |
2005-03-10 03:35
|
Unit1.pas (572 bytes) |
|
The problem is that I receive a range check error. (range checking activated in runtime) |
|
Sorry the only error i got is an jclRegistryError and this is captured internally and can be ignored. What did you do to generate the error? |
|
I develop this using Delphi 5 Only when range check errors are on, then I receive this range check error. Class ERangeError. The error comes from the next procedure in jclRegistry.pas: procedure RegWriteInteger(const RootKey: DelphiHKEY; const Key, Name: string; Value: Integer); begin RegWriteInteger(RootKey, Key, Name, REG_DWORD, Cardinal(Value)); end; When not check the option Range Check Error, then there are no problems, but i like this option on when distributing my app. |
|
Could you try to debug into and show me the parameter values of the call of RegWriteInteger. I can't reproduce this on my d7. |
|
Rootkey = 2147483649 Key = Form1\DBGrid1_Columns\Item0\Font Name = Height Reg_Dword = 4 Value = -11 |
|
I didn't know. THis seems to be a problem of JCL. I will post a question in the newsgroup. |
|
Additional: The call : RegWriteInteger(2147483649, 'Form1\DBGrid1_Columns\Item0\Font', 'Height', -11); raises an exception when the RangeCheck is activated |
|
This is the same as in Issue 2805... It has been fixed in CVS on 2005-03-04. |
Date Modified | Username | Field | Change |
---|---|---|---|
2005-03-09 03:56 | ArnoldMaarel | New Issue | |
2005-03-09 05:54 | jfudickar | Note Added: 0006661 | |
2005-03-09 05:55 | jfudickar | Status | new => feedback |
2005-03-10 03:34 | ArnoldMaarel | File Added: Project1.cfg | |
2005-03-10 03:34 | ArnoldMaarel | File Added: Project1.dpr | |
2005-03-10 03:34 | ArnoldMaarel | File Added: Unit1.dfm | |
2005-03-10 03:35 | ArnoldMaarel | File Added: Unit1.pas | |
2005-03-10 03:38 | ArnoldMaarel | Note Added: 0006670 | |
2005-03-13 13:38 | jfudickar | Note Added: 0006698 | |
2005-03-14 04:06 | ArnoldMaarel | Note Added: 0006702 | |
2005-03-14 04:17 | jfudickar | Note Added: 0006703 | |
2005-03-14 04:37 | ArnoldMaarel | Note Added: 0006704 | |
2005-03-14 14:37 | jfudickar | Note Added: 0006707 | |
2005-03-14 14:38 | jfudickar | Note Added: 0006708 | |
2005-04-06 09:34 | anonymous | Note Added: 0006852 | |
2005-04-09 13:01 | jfudickar | Relationship added | related to 0002805 |
2005-04-11 03:48 | outchy | Relationship replaced | duplicate of 0002805 |
2005-04-11 03:48 | outchy | Duplicate ID | 0 => 2805 |
2005-04-11 03:48 | outchy | Status | feedback => resolved |
2005-04-11 03:48 | outchy | Resolution | open => fixed |
2005-04-11 03:48 | outchy | Assigned To | => outchy |