-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: CrazyAboutDOTNET
Message 1 in Discussion
Hello everybody,
I m one of the silent member of this group. I m
creating a VB.NET project for transfer database to DBASE to SQL Server. In this
transfer I m doing some calculation with DBASE database and after that I m
putting that calculated data into SQL Server database. I have near about 25
tables. In this program I have two progress bar. First progress bar increases
its value as data transferred in a table and the second progress bar increases
its value as one table transferred. I m using threading and I m calling next
thread at the end of one thread. So to copy one table I have thread and at the
end of the first thread I call the next thread. It works perfectly if I have
few data in a table but if I have 15 to 30 thousand data in any table then it
complete this table but after that it just increase the second progress bar
value and end the program and say �data transfer complete.� Which is at the
last table in transfer. Code is as follows : Sub ThrCust()
ProgressBar2.Value = 0
fromdt = MakeDataset("CUST")
If Not (fromdt Is Nothing) Then TransferCUST(fromdt)
ds.Clear()
ProgressBar1.Value = 0
ProgressBar2.Value += 1
Dim ThSupp As New Thread(New ThreadStart(AddressOf ThrSupp))
ThSupp.Start()
End Sub Sub ThrSupp()
fromdt = MakeDataset("SUPP")
If Not (fromdt Is Nothing) Then TransferSUPP(fromdt)
ds.Clear()
ProgressBar1.Value = 0
ProgressBar2.Value += 1
Dim ThStms As New Thread(New ThreadStart(AddressOf ThrSTMS))
ThStms.Start()
End Sub
Is there anything like timeout in threading or something like this. Problem is
really major for me. If u want any other information please ask me. Thank you
in advance. Alankar Jain
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]