TeeGrid V1.14 throws exception when trying to debug an application

TeeGrid VCL / FMX for Embarcadero RAD Studio, Delphi, C++ Builder and Lazarus Free Pascal.
Post Reply
Jochen H.
Newbie
Newbie
Posts: 7
Joined: Tue Sep 29, 2015 12:00 am

TeeGrid V1.14 throws exception when trying to debug an application

Post by Jochen H. » Fri Jan 26, 2024 10:46 am

I'm completely new to TeeGrid.

I'm trying to build a tiny test app with an empty TeeGrid to see wether or not it was installed correctly. My steps were:
  1. Create an empty VCL-Application
  2. Place a TeeGrid on the Form
  3. Open the TeeGrid Editor (double click) and add two Columns.
  4. Set only the "Header" property of each column.
  5. Save the project and click "Start" (F9) within the IDE.
Before any application Window opens, the application throws an exception: "Invalid property value"
01.png
First
01.png (19.52 KiB) Viewed 28455 times


After clicking the button "continue" it shows a 2nd one.
02.png
02.png (20.46 KiB) Viewed 28455 times



What did I do wrong? Any help is appreciated.


Edit: I didn't attach any data source at all. Only adding two named columns in the editor!

Marc
Site Admin
Site Admin
Posts: 1274
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: TeeGrid V1.14 throws exception when trying to debug an application

Post by Marc » Fri Jan 26, 2024 11:06 am

Hello,

I followed your steps with a new VCL project in RAD Studio 12 and TeeGrid v1.14 and it built/ran ok.

What version of RAD Studio are you using?

With thanks.
Regards,
Marc Meumann
Steema Support

Jochen H.
Newbie
Newbie
Posts: 7
Joined: Tue Sep 29, 2015 12:00 am

Re: TeeGrid V1.14 throws exception when trying to debug an application

Post by Jochen H. » Fri Jan 26, 2024 11:23 am

Hi Marc, thanks for your reply.
We're using Embarcadero® C++Builder 12 Version 29.0.50491.5718
(Professional)


This is my form as text: I do wonder why it has an underscore in the headers section _Headers = (

Edit: Removing the underscore is even worse. So I suppose it belongs there! :D

Code: Select all

object Form1: TForm1
  Left = 0
  Top = 0
  Caption = 'Form1'
  ClientHeight = 441
  ClientWidth = 624
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -12
  Font.Name = 'Segoe UI'
  Font.Style = []
  OnCreate = FormCreate
  TextHeight = 15
  object Button1: TButton
    Left = 40
    Top = 384
    Width = 75
    Height = 25
    Caption = 'Button1'
    TabOrder = 0
  end
  object TeeGrid1: TTeeGrid
    Left = 88
    Top = 40
    Width = 400
    Height = 250
    Columns = <
      item
        Header.Text = 'Test Column 1'
      end
      item
        Header.Text = 'Test Column 2'
      end>
    UseDockManager = False
    ParentBackground = False
    ParentColor = False
    TabOrder = 1
    _Headers = (
      1
      'TColumnHeaderBand'
      <
        item
        end>)
  end
end

Marc
Site Admin
Site Admin
Posts: 1274
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: TeeGrid V1.14 throws exception when trying to debug an application

Post by Marc » Fri Jan 26, 2024 12:53 pm

Hello, the content for my form Grid is pretty much the same, no FormCreate event or Button but the Grid syntax is identical.

Code: Select all

object Form1: TForm1
  Left = 0
  Top = 0
  Caption = 'Form1'
  ClientHeight = 441
  ClientWidth = 624
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -12
  Font.Name = 'Segoe UI'
  Font.Style = []
  TextHeight = 15
  object TeeGrid1: TTeeGrid
    Left = 80
    Top = 112
    Width = 400
    Height = 250
    Columns = <
      item
        Header.Text = 'test column1'
      end
      item
        Header.Text = 'test column2'
      end>
    UseDockManager = False
    ParentBackground = False
    ParentColor = False
    TabOrder = 0
    _Headers = (
      1
      'TColumnHeaderBand'
      <
        item
        end>)
  end
end
I'm running the project as Delphi Pascal. I'll have a go at a C++ project.

Please check that you don't have other versions of TeeGrid on your search-path/package-list.

Regards,
Marc
Steema Support

Jochen H.
Newbie
Newbie
Posts: 7
Joined: Tue Sep 29, 2015 12:00 am

Re: TeeGrid V1.14 throws exception when trying to debug an application

Post by Jochen H. » Fri Jan 26, 2024 1:33 pm

This is the first time ever we're using TeeGrid. There are no other versions in the search path. We do have TeeChart Pro installed, though. But I think this isn't the problem. All the paths have been set up by the installer.

Include-Path:
inc.png
inc.png (41.59 KiB) Viewed 28447 times

Library-Path:
lib.png
lib.png (33.77 KiB) Viewed 28447 times

I've attached the two stack traces.
First exception:
EX1.png
EX1.png (92.79 KiB) Viewed 28447 times

Jochen H.
Newbie
Newbie
Posts: 7
Joined: Tue Sep 29, 2015 12:00 am

Re: TeeGrid V1.14 throws exception when trying to debug an application

Post by Jochen H. » Fri Jan 26, 2024 1:33 pm

Second exception:
EX2.png
EX2.png (75.95 KiB) Viewed 28447 times

Jochen H.
Newbie
Newbie
Posts: 7
Joined: Tue Sep 29, 2015 12:00 am

Re: TeeGrid V1.14 throws exception when trying to debug an application

Post by Jochen H. » Fri Jan 26, 2024 1:38 pm

I don't know wether or not it helps, but this is the project file:
TeeGridTest1.zip
(7.44 KiB) Downloaded 1520 times

Jochen H.
Newbie
Newbie
Posts: 7
Joined: Tue Sep 29, 2015 12:00 am

Re: TeeGrid V1.14 throws exception when trying to debug an application [FIXED]

Post by Jochen H. » Mon Jan 29, 2024 6:57 am

FIXED IT :D

In the project options "Packages" --> "Runtime Packages" one must uncheck "link with runtime-packages".
Can somebody please confirm this?
FIX.png
FIX.png (52.76 KiB) Viewed 28236 times

Marc
Site Admin
Site Admin
Posts: 1274
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: TeeGrid V1.14 throws exception when trying to debug an application

Post by Marc » Tue Jan 30, 2024 1:56 pm

I just checked that. It runs ok with or without the 'runtime packages' selected. It may be something in the package list on your setup that is causing the problem.

TeeGrid is in the package list on the test installation here.

Regards,
Marc
Steema Support

Jochen H.
Newbie
Newbie
Posts: 7
Joined: Tue Sep 29, 2015 12:00 am

Re: TeeGrid V1.14 throws exception when trying to debug an application

Post by Jochen H. » Fri Feb 02, 2024 9:15 am

I've confirmed that the package "VCLTeeGrid" is in the list. When I try to start the application with runtime packages enabled it crashes upon startup like before. But now i've removed the runtime package "VCLTeeGrid" from the list and it works now with runtime packages enabled!!??

Post Reply