Christian Budde wrote:
Vincent Snijders schrieb:

Christian Budde wrote:

Back to my problem:

i found out that adding: Application.Initialize avoids the access violation but introduces a bounds check error. Anyway Delphi works without the need to add Application.Initialize so it must be possible.

I've already compared the *constructor* Application.Create and found out, that Delphi does not create a handle if it is a library. In LCL this part looks quite different. Also after a search on the forum I found out, that in Delphi the "Application" of the host is used (or at least its handle) instead of creating a new Application.

And I think that is the heart of the problem. I don't think it is possible to share the Application object yet, fpc needs to support packages (like .bpl) for that so, that the LCL can be shared.

But maybe I am wrong, you have researched more than I have.

Is there anyone on the list who can tell me more? Are there already plans for sharing the Application object or support of packages? With this option it would be also possible to add components at real time, like it is possible with Delphi.

Support for packages is planned for fpc 2.2
http://www.freepascal.org/wiki/index.php/Road_map

Vincent

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to