If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Visual Basic application login to remote database server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-03, 23:08
pllim pllim is offline
Registered User
 
Join Date: Jan 2003
Posts: 2
Visual Basic application login to remote database server

I am using Informix Dynamic Server 7.31 on a Siemens machine at a remote office. The remote office is link with my central office through routers and digital leased line with a backup ISDN line. The ISDN line will take-over the leased line when the leased line failed to function. Typically, it will take less than a minute for the ISDN line to replace the leased line as the primary line.
Using MS Visual Basic, I have developed an application that logs in to the remote machine database. My application is running on a Windows-based computer and it works fine.
The problem - when the leased line breaks down and the ISDN line begins to take over, my application will terminate and Dr. Watson message will appear. It seems to me, the problem happens because there is a delay for the ISDN to take over and the delay causes the application to terminate.
Is there somthing that I can tune in my VB application or the Informix server to be able to handle telecommunication line problem better?

Thanks in advance.
PL
Reply With Quote
  #2 (permalink)  
Old 01-09-03, 04:53
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
Do you test whether the connection is active in your visual basic program?
You could check what happens if you f.ex. unplug your windows machine from the network what error it generates on the ODBC level.
You could then test in your application for that error code and then reconnect.

If that doesn't work, trace the connection with sqlidebug to find out why VB crashes with Dr Watson.
__________________
rws
Reply With Quote
  #3 (permalink)  
Old 01-09-03, 09:34
wicky wicky is offline
Registered User
 
Join Date: Dec 2002
Location: Pakistan
Posts: 31
MS VB application will generate error whenever network problem occurs/database down while db connection are active.

It depends on the ODBC driver and logic of your application how to handle this situation.

Did you try to inactivate your db connection?
In VB you can active or inactive your db connections. Try it out it may minimize the frequency of same error.
Only activate your db connection before update (insert, delete and update) and query/refresh the data.

What is your strategy to trap the error?
Are you using ON ERROR GOTO.... statement in your functions/subs?

Wicky
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On