View Issue Details

IDProjectCategoryView StatusLast Update
0002728JEDI VCL00 JVCL Componentspublic2005-04-11 03:48
ReporterArnoldMaarelAssigned Tooutchy 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 BETA 2 
Target VersionFixed in Version3.10 
Summary0002728: Storing integer properties in an JvFormStorage wich are negative
DescriptionI 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 ?
TagsNo tags attached.

Relationships

duplicate of 0002805 resolvedoutchy JEDI Code Library RangeCheckError's when compiling with DebugDcu's 

Activities

jfudickar

2005-03-09 05:54

developer   ~0006661

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)

ArnoldMaarel

2005-03-10 03:38

reporter   ~0006670

The problem is that I receive a range check error.
(range checking activated in runtime)

jfudickar

2005-03-13 13:38

developer   ~0006698

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?

ArnoldMaarel

2005-03-14 04:06

reporter   ~0006702

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.

jfudickar

2005-03-14 04:17

developer   ~0006703

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.

ArnoldMaarel

2005-03-14 04:37

reporter   ~0006704

Rootkey = 2147483649
Key = Form1\DBGrid1_Columns\Item0\Font
Name = Height
Reg_Dword = 4
Value = -11

jfudickar

2005-03-14 14:37

developer   ~0006707

I didn't know.

THis seems to be a problem of JCL.

I will post a question in the newsgroup.

jfudickar

2005-03-14 14:38

developer   ~0006708

Additional:

The call :
  RegWriteInteger(2147483649, 'Form1\DBGrid1_Columns\Item0\Font', 'Height', -11);

raises an exception when the RangeCheck is activated

anonymous

2005-04-06 09:34

viewer   ~0006852

This is the same as in Issue 2805...

It has been fixed in CVS on 2005-03-04.

Issue History

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