Hi all,

I have a function (MyFunction). If I use this function then anytime
after this a property of the main form is changed my app will crash.
the program will not crash on execution of the function.

this code

MyResult := Myfunction;
x = 1+1;
y = x +1;
caption := 'caption changed';
x = y-1;

crashes on the fourth line;

Now this code
     
 test := 'good';
 try
   MyResult := MyFunction;
 except
   test := 'failed';
 end;
 Caption := 'caption changed';
 showmessage(test);

Works fine and test is 'good' when finished.
I can just use the above in my code and it all works sweet but what I
would like to know is what is causing the error.

The error is this program has preformed an illegal operation etc
and the function makes calls to a dll using some values from edit boxes.

James

P.S. A Big Thank you to the person who helped me with LDAP, My mailbox got
wiped so I lost your address.


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to