Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Jan : AThread.Data... 2 different objects stored..
| Subject: | AThread.Data... 2 different objects stored.. |
| Posted by: | "Jamie Dale" (jamie.da..@yahoo.com) |
| Date: | Wed, 16 Jan 2008 23:05:22 |
Hi
I'm using 2 different TObjects tocrepresent my client connections.
I have a TUser, and a TFileClient. Obviously these are stored in the thread
data.
A File transfer session will have its own connection - The problem is the
OnDisconect method. I need to free the object but I am not sure how to
determine what object it is - TUser or TFileClient.
Is there a method I am missing for doing this?
I tried: If AThread.Data = TUser... Incompatible types..
Any ideas?