Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,086
    • Issues 2,086
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 10
    • Merge requests 10
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 has launched! Please visit Breaking changes in 15.0 and 15.0 Removals to see which breaking changes may impact your workflow.

  • FPC
  • Lazarus
  • LazarusLazarus
  • Issues
  • #19882
Closed
Open
Created Aug 03, 2011 by FPC Admin account@fpc_adminOwner

Invalid type cast error in InitializeWnd of TlistBox

Original Reporter info from Mantis: michael @mvancanneyt
  • Reporter name: Michael Van Canneyt

Description:

Run the attached program. (one of the samples with English lazarus book)
In menu 'SPlitter' select 'vertical'.
You'll get an 'Invalid type cast' exception in TCustomListbox.InitializeWNd, line 118 of customlistbox.inc

The code seems valid, I'm guessing somewhere a new FItems is assigned which is not of type TExtendedStringList.

Tested on GTK2, But I assume it will happen on all platforms given that it's in customlistbox.inc

Mantis conversion info:

  • Mantis ID: 19882
  • OS: Linux
  • OS Build: 2.6.x
  • Platform: Linux
  • Version: 0.9.30.1 (SVN)
  • Fixed in revision: 36758 (#6c1a7ae7)
  • Monitored by: » luizamerico (Luiz Americo)
  • Target version: 1.0.0
Assignee
Assign to
Time tracking