Le 11/03/2014 13:12, Mattias Gaertner a écrit :
On Tue, 11 Mar 2014 08:37:14 +0100
Antonio Fortuny <[email protected]> wrote:

Le 10/03/2014 18:20, Mattias Gaertner a écrit :
        if Elapsed > 5000 then
          Break;
        Inc(Elapsed, 50)
      end;
      FreeAndNil(FTH);
    end;
inherited;
This solves part of the problem. Thanks Mattias. :-)
It was to obvious that I guess I was on another planet whent thinking on
the problem.
Now I still have the problem in the IDE:
- dropping the non visual component on a form is OK
- running the program with that component dynamically created is OK
- when deleting the component from the form, in the IDE, Lazarus crashes
with an access violation exception
BTW, why does your component start a thread at design time?
Yep ! Mattias you are my muse :-D
After a careful reading of the code it appears that the internal thread created had this line in the constructor.
  FreeOnTerminate := True;
Aaaaaaargh ! :-[
So simple, so obvious, so easy and I missed it.
Is was on another planet, defintely.
Not it all runs nicely.

Thanks,

Antonio.

Mattias

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
Sita
                Software
Antonio Fortuny
Senior Software engineer

220, avenue de la Liberté
L-4602 Niederkorn
Tel.: +352 58 00 93 - 93
www.sitasoftware.lu
Your IT Partner



Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection Antivirus avast! est active.


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to