Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-04

External SIGSEGV when trying to use data module components

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Luca Olivetti

El 11/04/15 a les 17:48, brian ha escrit:

Show quoted text 5 lines
My problem is a simple one to describe - the program compiles correctly, but the moment I try to do anything with the objects in the data module, I get an immediate 'external SIGSEGV'. When I say do anything with them, this is as simple as adding a line of SQL to a query.

Check in project options, forms that the datamodule is in the "auto create forms".

Also, if you're trying to use the datamodule in the OnCreate event handler of the main form, that's going to cause a sigsev since the datamodule hasn't been created yet. Use OnShow instead.

Bye

Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007

Reply by email

brian
to Luca Olivetti
Luca Olivetti wrote 11 lines
El 11/04/15 a les 17:48, brian ha escrit: > My problem is a simple one to describe - the program compiles > correctly, but the moment I try to do anything with the objects in the > data module, I get an immediate 'external SIGSEGV'. When I say do > anything with them, this is as simple as adding a line of SQL to a > query. Check in project options, forms that the datamodule is in the "auto create forms".

Yes, that's there.

Also, if you're trying to use the datamodule in the OnCreate event handler of the main form, that's going to cause a sigsev since the datamodule hasn't been created yet. Use OnShow instead.

I've got a tabbed notebook on the main form, and the database stuff is in the OnShow of one of the tabs.

Thanks for the ideas,

Brian.

Reply by email