View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002666 | JEDI VCL | 00 JVCL Components | public | 2005-02-20 23:42 | 2008-02-21 03:27 |
| Reporter | robert_marquardt | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | suspended | ||
| Product Version | 3.00 BETA 2 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0002666: JvFormPlacement throws exception when reading back a Double | ||||
| Description | The 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. | ||||
| Tags | No tags attached. | ||||
|
2005-02-20 23:42
|
JvFormPlacementBug.zip (2,404 bytes) |
|
|
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. |
|
|
If you want, then change it. |
|
|
Jens, Robert, any news on this? |
|
|
Hi Olivier, sorry but i didn't have looked for it further. Greetings Jens |
|
|
Any news? |
|
|
Updated in SVN, Have a look for the updated example |
|
|
Sorry, wrong entry. Two entries open ;-) |
|
|
so, jens, what to do with the issue? |
|
|
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 |
|
|
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 |
| 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 |