My vb6 Application Hangs!

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2009
Posts: 11
Reputation: samuelmoneill is an unknown quantity at this point 
Solved Threads: 0
samuelmoneill samuelmoneill is offline Offline
Newbie Poster

My vb6 Application Hangs!

 
0
  #1
Aug 4th, 2009
Hi,

I am writing a vb6 application to take in SMS text messages from a modem, do some string maniplation on the messages and store them in a MySQL database. It also prints them to the main screen of the application.

I am using a timer to check the SIM card for new text messages. If it finds new messages it sorts them into a database and prints them in a listbox on the main screen, then it deletes that message from the SIM card. That is the general runnung of the application

My question is, why does it cause my application to hang after a certain length of time. I have to do a lot of calls to the mysql database for checking strings against fields int the database and inserting and deleting records from the db. My suspicions are that these multiple calls to the db could be a factor for hanging the app.

Also The machine only has 64MB of RAM, a Pentium 4 Processor and is running WinXP.

If anyone has any ideas of why it might be hanging I would appreciate your support
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 894
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 167
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark

Re: My vb6 Application Hangs!

 
0
  #2
Aug 4th, 2009
Do you keep your connection to the database open for long periods of time? Unfortunatly, ado has the tendency to drop connections that are held open for long periods of time and if it is really ado's fault or the network or the server itself who knows. It is just a behavior I have noticed. The cure to this is to close all connections when not in use and reopen them when needed.



Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 141
Reputation: jonifen is an unknown quantity at this point 
Solved Threads: 15
jonifen jonifen is offline Offline
Junior Poster

Re: My vb6 Application Hangs!

 
0
  #3
Aug 5th, 2009
I'll second what vb5prgmr has said about only having connections open when they are needed.

Also, have you monitored to see how much free RAM your PC has remaining when it approaches the time where it hangs?
The reason I ask is that 64Mb of RAM with WinXP and a SQL Server database running on it (especially a server with a lot of calls to it) is going to cause slowdowns.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC