× Components and Libraries for Graphics Development, discussions, problems and suggestions.

Question Problem with ORCA and DBGrid

  • Marcin W.
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 years 7 months ago - 3 years 7 months ago #10393 by Marcin W.
Problem with ORCA and DBGrid was created by Marcin W.
Hi!

1. Windows 10 Prof
2. CT 5.8
3. ZEOS components as data source from SQlite data base.
4. On form I put TD2Scene object, then TD2Background, and then TD2DBGrid.
5. I connect DBGrid to DataSource.
6. As far I don't create columns and connect them to the fields from DataSource, everything is fine.
But after connecting columns to fields, when I close application, it crashes.

greetings,
Marcin
Last edit: 3 years 7 months ago by Marcin W..

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
3 years 7 months ago #10394 by Sternas Stefanos
Replied by Sternas Stefanos on topic Problem with ORCA and DBGrid
Thanks Sir
any sample project ?

(zip and attach here)

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Marcin W.
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 years 7 months ago #10395 by Marcin W.
Replied by Marcin W. on topic Problem with ORCA and DBGrid
Here you are.

greetings
Marcin
Attachments:

Please Log in or Create an account to join the conversation.

  • Marcin W.
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 years 7 months ago #10396 by Marcin W.
Replied by Marcin W. on topic Problem with ORCA and DBGrid
I've just realized that problem does not occur when the base is empty.
Sample data in attachment.
Attachments:

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
3 years 7 months ago #10397 by Sternas Stefanos
Replied by Sternas Stefanos on topic Problem with ORCA and DBGrid
Thanks Sir

The problem is in pl_ORCA library
please give us time to solve this...


PilotLogic Architect and Core Programmer
Attachments:

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #10398 by Helder R. C.
Replied by Helder R. C. on topic Problem with ORCA and DBGrid
For some time I also had problems with TD2DBGrid and I was not successful either. I had to use another grid.
See here
If the problem is resolved, I can reconsider using it again.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
3 years 7 months ago - 3 years 7 months ago #10399 by Sternas Stefanos
Replied by Sternas Stefanos on topic Problem with ORCA and DBGrid
Guys
we "partial" fix the problem

Please TRY to Free TD2DBGrid before ZQuery1.close
procedure TForm1.FormClose(Sender: TObject; var CloseAction: TCloseAction);
begin
  FreeAndNil(DBGrid1); // SOS Free TD2DBGrid before ZQuery1.close
  ZQuery1.Close;
end;     

In our tests (Win10-32 and Win10-64) work OK

PS: This sample is in Lab CT-CodeOcean now...

PilotLogic Architect and Core Programmer
Last edit: 3 years 7 months ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • Marcin W.
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 years 7 months ago #10400 by Marcin W.
Replied by Marcin W. on topic Problem with ORCA and DBGrid
On Windows 10 Prof 64 and CT 5.8 it works too.

greeting
Marcin

Please Log in or Create an account to join the conversation.