Page 1 of 1

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

Posted: Fri Jan 26, 2024 10:46 am
by 16576471
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 28453 times


After clicking the button "continue" it shows a 2nd one.
02.png
02.png (20.46 KiB) Viewed 28453 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!

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

Posted: Fri Jan 26, 2024 11:06 am
by Marc
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

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

Posted: Fri Jan 26, 2024 11:23 am
by 16576471
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

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

Posted: Fri Jan 26, 2024 12:53 pm
by Marc
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

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

Posted: Fri Jan 26, 2024 1:33 pm
by 16576471
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 28445 times

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

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

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

Posted: Fri Jan 26, 2024 1:33 pm
by 16576471
Second exception:
EX2.png
EX2.png (75.95 KiB) Viewed 28445 times

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

Posted: Fri Jan 26, 2024 1:38 pm
by 16576471
I don't know wether or not it helps, but this is the project file:
TeeGridTest1.zip
(7.44 KiB) Downloaded 1520 times

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

Posted: Mon Jan 29, 2024 6:57 am
by 16576471
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 28234 times

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

Posted: Tue Jan 30, 2024 1:56 pm
by Marc
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

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

Posted: Fri Feb 02, 2024 9:15 am
by 16576471
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!!??