Hello people,
Once again I ask for your help in solving a problem.
I have a standard form, in it I define the standard size of my forms in addition to colors and other details.
From this form I inherit another form which is a standard formCadastroPadrao.
In this form, I have a TDataSource and I have two events associated with it onDataChange and onStateChange.
From this form I inherit all the registration forms from my system.
I also have a formPrincipal (which inherits from the Standard form), which is responsible for calling the registration forms.
And everything works perfectly.
I open the system, access the registration screens and everything works. The problem occurs when I close the application using formPrincipal. I do one:
For some reason, which I have not yet identified, the onStateChange event of the formCadastroPadrao is executed once for each open registration form (if I open the formCadastroPessoa 10 times, the event will be executed 10 times).
Then, it ends up giving the following error:
Project Test raised exception class 'External: SIGSEGV'.
Am I doing something wrong when using inheritance?
Does anyone have any suggestions as to what may be causing the problem?
Any help is very welcome.
Thanks!