View Issue Details

IDProjectCategoryView StatusLast Update
0003186JEDI VCL00 JVCL Componentspublic2006-06-27 07:56
ReporterdemonekAssigned Toobones 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 
Target VersionFixed in Version3.30 
Summary0003186: AV when adding Variant type variable to JvInspector
DescriptionI'd like to use variable that can keep null value, using Integer gives me 0 by default that is wrong. So I tried Variant, but get AV when executing TJvInspectorVarData.New method like :

with TJvInspectorVarData.New(_InspCat, _value.Definition.Name,
          TypeInfo( Variant ), @(_item_ref.asVariant) ) do
begin
  DisplayName := _value.Definition.A_Label; // <-- AV here

Is there any way to fix it or handle with this problem.
TagsNo tags attached.

Activities

obones

2006-04-03 05:17

administrator   ~0008833

Can you post the zipped sources of a sample application?

2006-04-03 10:26

 

variant_2006.04.03_18.32.24.zip (16,391 bytes)

demonek

2006-04-03 10:29

reporter   ~0008843

This is modified sample from jvcl.

obones

2006-06-27 07:55

administrator   ~0009690

This is "expected" as the New function returns nil.
This is because Variant is not a registered data type in the RegisterDataTypeKinds method.
I have added a new Variant support class into the current SVN version.

Issue History

Date Modified Username Field Change
2005-09-09 05:48 demonek New Issue
2006-04-03 05:17 obones Note Added: 0008833
2006-04-03 05:17 obones Status new => feedback
2006-04-03 10:26 demonek File Added: variant_2006.04.03_18.32.24.zip
2006-04-03 10:29 demonek Note Added: 0008843
2006-06-08 02:55 obones Status feedback => acknowledged
2006-06-27 07:55 obones Status acknowledged => resolved
2006-06-27 07:55 obones Fixed in Version => Daily / SVN
2006-06-27 07:55 obones Resolution open => fixed
2006-06-27 07:55 obones Assigned To => obones
2006-06-27 07:55 obones Note Added: 0009690