| | |
My vb6 Application Hangs!
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jul 2009
Posts: 11
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Mar 2009
Posts: 894
Reputation:
Solved Threads: 167
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
Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
•
•
Join Date: Nov 2007
Posts: 141
Reputation:
Solved Threads: 15
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.
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.
![]() |
Similar Threads
- autmation erorr in compiling all vb6 application (Visual Basic 4 / 5 / 6)
- Application hangs. (C#)
- Multilingual VB6 application sample (Visual Basic 4 / 5 / 6)
- VB6 MAPI application - RTF format (Visual Basic 4 / 5 / 6)
- VB6 application and Cryatal Reports Professional Addition 9 (Visual Basic 4 / 5 / 6)
- Javascript/VBScript within VB6 application (Visual Basic 4 / 5 / 6)
- Error while running VB6 application in Windows XP and Windows 2003 server (Visual Basic 4 / 5 / 6)
- Error while running VB6 application with Oracle on Windows XP SP2 (Visual Basic 4 / 5 / 6)
- XP application hangs when importing Video files (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Path Picture to Show PictureBox help me please
- Next Thread: Need help
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





