View Issue Details

IDProjectCategoryView StatusLast Update
0002666JEDI VCL00 JVCL Componentspublic2008-02-21 03:27
Reporterrobert_marquardtAssigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionsuspended 
Product Version3.00 BETA 2 
Target VersionFixed in Version 
Summary0002666: JvFormPlacement throws exception when reading back a Double
DescriptionThe enclosed test program does not read back TestDouble.
When entering TJvStoredValue.Restore the Value (a Variant) is typed as varByte instead of varDouble.
Consequently reading of the registry fails by trying to read an Extended of reg type REG_BINARY into an Integer.

I am not familiar enough with JvFormPlacement to find the above bug.
My guess is that the variant type of Value gets not correctly initialized.

Another problem is to handle varSingle, varDouble and varCurrency through ReadFloat/WriteFloat which uses Extended. This can cause conversion inaccuracies to happen.
TagsNo tags attached.

Activities

2005-02-20 23:42

 

JvFormPlacementBug.zip (2,404 bytes)

robert_marquardt

2005-02-22 00:40

developer   ~0006543

I have narrowed down the problem. It is a design problem in JvFormPlacement.
TJvStoredValue uses the Value: Variant property. The type of the Variant is not stored in the .dfm file.

  object TestStore: TJvFormStorage
    StoredValues = <
      item
        Name = 'TestDouble'
        Value = 0
      end
      item
        Name = 'TestString'
        Value = '.'
      end
      item
        Name = 'TestWide'
        Value = '.'
      end
      item
        Name = 'TestDate'
        Value = 0d
      end
      item
        Name = 'TestInt64'
        Value = 0
      end>

TJvStoredValue therefore needs either a Kind property or a custom persistence method which also stores the type of the Variant.

jfudickar

2005-02-22 02:21

developer   ~0006544

If you want, then change it.

obones

2006-03-30 06:52

administrator   ~0008758

Jens, Robert, any news on this?

jfudickar

2006-03-30 14:01

developer   ~0008774

Hi Olivier,

sorry but i didn't have looked for it further.

Greetings
Jens

obones

2006-06-08 02:19

administrator   ~0009423

Any news?

jfudickar

2006-09-25 01:41

developer   ~0010168

Updated in SVN,

Have a look for the updated example

jfudickar

2006-09-25 01:42

developer   ~0010169

Sorry, wrong entry.

Two entries open ;-)

obones

2006-10-06 03:03

administrator   ~0010305

so, jens, what to do with the issue?

jfudickar

2006-10-06 05:29

developer   ~0010318

Sorry not so much. I can't figure it out.

I didn'T have so much time in the moment to look realy deap in this problem.

Greetings
Jens

obones

2008-02-21 03:26

administrator   ~0014222

This issue is too old, many changes have been done in between. Should this still be applicable, please create a new issue after having tested using the latest JVCL

Issue History

Date Modified Username Field Change
2005-02-20 23:42 robert_marquardt New Issue
2005-02-20 23:42 robert_marquardt File Added: JvFormPlacementBug.zip
2005-02-21 23:55 jfudickar Status new => assigned
2005-02-21 23:55 jfudickar Assigned To => jfudickar
2005-02-22 00:40 robert_marquardt Note Added: 0006543
2005-02-22 02:21 jfudickar Note Added: 0006544
2005-04-13 09:08 jfudickar Assigned To jfudickar =>
2006-03-30 06:52 obones Note Added: 0008758
2006-03-30 06:52 obones Status assigned => feedback
2006-03-30 14:01 jfudickar Note Added: 0008774
2006-06-08 02:19 obones Note Added: 0009423
2006-09-25 01:41 jfudickar Status feedback => resolved
2006-09-25 01:41 jfudickar Resolution open => fixed
2006-09-25 01:41 jfudickar Assigned To => jfudickar
2006-09-25 01:41 jfudickar Note Added: 0010168
2006-09-25 01:42 jfudickar Status resolved => feedback
2006-09-25 01:42 jfudickar Resolution fixed => reopened
2006-09-25 01:42 jfudickar Note Added: 0010169
2006-10-06 03:03 obones Note Added: 0010305
2006-10-06 05:29 jfudickar Note Added: 0010318
2006-10-16 14:16 jfudickar Assigned To jfudickar =>
2008-02-21 03:26 obones Status feedback => closed
2008-02-21 03:26 obones Note Added: 0014222
2008-02-21 03:27 obones Resolution reopened => suspended