View Issue Details

IDProjectCategoryView StatusLast Update
0005796JEDI VCL00 JVCL Componentspublic2012-09-10 14:15
ReporterRHAssigned Toobones 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.45 
Target VersionFixed in Version3.46 
Summary0005796: EAccessViolation raised when calling the TJvInspector TypeInfo macro with type UnicodeString in C++ Builder
DescriptionThe TypeInfo macro is required for C++ Builder, which uses the TJvTypeInfoHelper class. This class has to have all known types added manually in order for the macro to work.

It is simply missing the UnicodeString type.

It raises the EAccessViolation exception when using TypeInfo(UnicodeString).
Additional InformationTJvTypeInfoHelper class needs to have the Unicodestring type added in order to work with unicode strings in C++ Builder. Only a few lines need to be added to get it working. The code change is listed below, along with the modified file attached to this report.

The
  TJvTypeInfoHelper = class(TPersistent)
  private
...
    {$IFDEF UNICODE}
    FUnicodeString: UnicodeString; // added
    {$ENDIF}
    FWideCharProp: WideChar;
    FWordProp: Word;
    FWordBoolProp: WordBool;
  published
...
    {$IFDEF UNICODE}
    property UnicodeStringProp: UnicodeString read FUnicodeString; // added
    {$ENDIF}
    property WideCharProp: WideChar read FWideCharProp;
    property WordProp: Word read FWordProp;
    property WordBoolProp: WordBool read FWordBoolProp;
...
TagsNo tags attached.

Activities

2012-02-14 23:22

 

JvInspector.pas (392,205 bytes)

obones

2012-02-24 17:47

administrator   ~0019546

This is now fixed in SVN

Issue History

Date Modified Username Field Change
2012-02-14 23:22 RH New Issue
2012-02-14 23:22 RH File Added: JvInspector.pas
2012-02-22 15:15 obones Status new => acknowledged
2012-02-24 17:47 obones Note Added: 0019546
2012-02-24 17:47 obones Status acknowledged => resolved
2012-02-24 17:47 obones Fixed in Version => Daily / SVN
2012-02-24 17:47 obones Resolution open => fixed
2012-02-24 17:47 obones Assigned To => obones
2012-09-10 14:15 obones Fixed in Version Daily / SVN => 3.46