Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLConnect handle
Message
From
24/01/2002 16:31:43
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00610108
Message ID:
00610116
Views:
21
How does your class "pass" the handle to other classes? You aren't getting a new connection every time, are you?

>Hello,
>
>I have a class that creates a connection to an SQL Server and passes the resulting connection handle value to other classes needing it. I've noticed as the number of classes the handle is passed to grows, I get an error message stating "Connection handle is invalid". Is there a limit to the number of times a handle can be passed? Should each class create its own connection?
>
>Thanks,
>
>Keith Robinson
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform