Top.Mail.Ru
Мастера DELPHI, Delphi programming community Титульная страница Поиск, карта сайта Написать письмо 
| Новости | Поиск | FAQ | Статьи | Книги | Новости VCL |
| Форумы ЧАТ | Орешник | KOL и MCK |
Форумы -» Основная («Начинающим»)/ Базы / WinAPI / Компоненты / Сети / Media / Игры / Corba и COM / KOL / FreePascal / .Net / Прочее / RSDN.ORG

« предыдущая ветвь | форум | следующая ветвь »

Known problems with KOL DLL using forms and applet ?


Dodfr ©   (2005-07-01 19:12:00) 

Hi,

I am doing a DLL that is called by a C DLL.

The DLL open some forms and crash when form close.

I did exact same thing in VCL mode, no crash.

Any hint about things to take care using KOL for making DLL that display forms ?


<Falcon>   (2005-07-04 12:49:00) [1]

I've tried this method on a dinamick dll loading
Try to define in the dll  hApplet as PControl variable, and use it with creating form e.t.c.

hApplet := NewApplet( 'fake applet' );
NewKOLForm1( KOLForm1, hApplet );

Applet is a global variable, and if you are using Free_And_Nil( Applet ) in a dll code, it might
cause a crash.


Dodfr   (2005-07-04 11:07:00) [2]

Excuse me Falcon, but I don't even read a word in russian.

I just read that you say something about applet. I already added applet to the DLL form because if not, the ShowModal I use do not "stop" on it and continue to process the code.


<Falcon>   (2005-07-03 17:38:00) [3]

Загрузка dll динамическая?
Попробуйте объявить в dll переменную hApplet: PControl и дальше в dll работать с ней. Тое есть создание формы и т.п.
hApplet := NewApplet( 'fake applet' );
NewKOLForm1( KOLForm1, hApplet );
и так далее. У меня это ситуацию спасло.


Dodfr   (2005-07-01 20:34:00) [4]

Unfortunately I can't because this problem was 3 months ago and I decided to switch the project to VCL (I didn't knew about this forun at his time).

Thank you.


ECM   (2005-07-01 20:01:00) [5]

send me minimal project ...


Наверх

Титульная страница Поиск, карта сайта Написать письмо