controlling form size of a form in DLL


  I wrote several DLLs with Delphi. I had one DLL that had a form and it gave
GPF every time I used it. In the DLL's form I tried to control the forms size
and that caused the GPF. Has anyone marked the same? Am I doing something wrong
with this? The code was attached to onResize event and it looked something
about this:

  if TheForm.ClientHeight < minHeight then
    TheForm.ClientHeight := minheight;

  The if-clause gave GPF. If the same code was in EXE-program there ware no

  Veikko Vaataja