View Issue Details

IDProjectCategoryView StatusLast Update
0002608JEDI VCL00 JVCL Componentspublic2005-02-08 06:17
ReportercarloswAssigned ToAHUser 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 BETA 2 
Target VersionFixed in Version3.00 
Summary0002608: EInvalidCast error in JvTabBar
DescriptionWhen i try to add an Tab from code i get this error

Exception class: EInvalidCast
Exception address: 007DE4E6
----------------------------------------------------------------------------------------------------
Stack list, generated 2/8/2005 10:46:53 AM
[007DE4E1] JvTabBar.TJvTabBarItems.GetTabBar (Line 1444, "JvTabBar.pas" + 1) + $11
[004029D6] System.ErrorAt (Line 3040, "system.pas" + 3) + $4
[007DE4E1] JvTabBar.TJvTabBarItems.GetTabBar (Line 1444, "JvTabBar.pas" + 1) + $11
[007DE592] JvTabBar.TJvTabBarItems.Notify (Line 1473, "JvTabBar.pas" + 14) + $2
[00425F2B] Classes.TCollection.InsertItem (Line 4071, "classes.pas" + 7) + $A
[004258DA] Classes.TCollectionItem.SetCollection (Line 3858, "classes.pas" + 4) + $C
[004256AF] Classes.TCollectionItem.Create (Line 3808, "classes.pas" + 1) + $8
[007DE0CE] JvTabBar.TJvTabBarItem.Create (Line 1201, "JvTabBar.pas" + 1) + $4
[00425A24] Classes.TCollection.Add (Line 3921, "classes.pas" + 1) + $B
[007DF5EC] cwFormTabBar.TcwFormTabBar.AddForm (Line 103, "cwFormTabBar.pas" + 1) + $9
Additional InformationSolution: Typo in GetTabBar: TJvTabBar should by TJvCustomTabBar

function TJvTabBarItems.GetTabBar: TJvCustomTabBar;
begin
-- Result := GetOwner as TJvTabBar;
                         ^^^^^^^^^^
++ Result := GetOwner as TJvCustomTabBar;
end;
TagsNo tags attached.

Activities

AHUser

2005-02-08 06:17

developer   ~0006439

Thanks.

Fixed in CVS.

Issue History

Date Modified Username Field Change
2005-02-08 06:03 carlosw New Issue
2005-02-08 06:17 AHUser Status new => resolved
2005-02-08 06:17 AHUser Resolution open => fixed
2005-02-08 06:17 AHUser Assigned To => AHUser
2005-02-08 06:17 AHUser Note Added: 0006439