Question : Multiple Dll's in Delphi

I have a system which has two dll's, the problem I have is that when a function is called from dllB after calling a function in dllA I get an Access Violation.

It seems all to be related to the creation and freeing of the Forms which the functions create.

Can anyone give me an example of where and how best to create the forms and where and how they should be released.

Answer : Multiple Dll's in Delphi

You can set the ParentWindow property of the second form to the Handle of the first form, so the form knows who the parent form is.

Alternately, you can set the FormStyle to fsStayOnTop for both your forms. That way the first form should not be hidden, and the second will still be displayed on top of the first one.

Random Solutions  
programming4us programming4us