Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connection handle is invalid!
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00727876
Message ID:
00727901
Views:
14
Hi!

>Vlad,
>
>maybe I'm missing something here ... is it possible to open a remote view, disconnect the connection the view is using and later re-connect and make updates from the view's cursor that's still open over the new connection?
>

Well, if you meant exactly this, I agree with you - for view/SPT cursor there is no way to make another connection and then update.

>>As about this particular problem, its strange that sqldisconn(0) in anotehr app causes crash in first app.
>
>I wouldn't think that this is really the cause for the problem. But one never knows. IMO it's more likely that there's something else wrong.
>

That is what is needed to know. Just need more information on WHAT is wrong. Error message is a result, the real REASON of prooblem is deeper. Unfortunately, I or you could not look such deep without source code or good explanations...

>Regards,
>Armin
>
>>
>>That's not true. You can get exact connection string from cursor properties, remember it, and then re-connect to server later (after disconecting) by using SQLStringConnect().
>>
>>As about this particular problem, its strange that sqldisconn(0) in anotehr app causes crash in first app.
>>
>>Fbilo, can you give more details about sequense of events happening? Like connect, disconnect, connect with what handle etc.
>>
>>>Hi,
>>>
>>>>Yeah, i do have an sqldisconn(0) state in another application. Mybe its because of i test that two app together. Thanks, but how can i get away from this state? I try to rebuild a connection, it did'nt work.:(
>>>
>>>unfortunately you can't reconnect to the database. You'll have to avoid disconnecting from the database before your cursors/views are closed.
>>>
>>>HTH,
>>>Armin
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform