>If I add a method to a DLL to open a table and
>return a value, the table is closed automatically
>when I come back out of the DLL, even though the
>DLL was instantiated in the same datasession.
>
>If I open the table before I go into the DLL and
>pass in the alias, I get an 'alias not found' OLE
>error from the dll.
>
>So why is the DLL closing the table or not seeing
>it at all? Whats the solution here?
Kevin,
By DLL do you mean a true DLL, or do you mean a VFOX automation server ??? I'm going to answer under the belief that you are talking about an automation server created in VFox.
What do you mean by "come back out of the DLL", and "go into the DLL" ???
If the DLL is based on a form, it may have a "private data session" This will cause both of the problems you are having. Thus, check the data session of your calling form as well.
Regards,
Jason
Jason Tryon
Senior Systems Analyst / Technical Lead
eBusiness / iPage