V
Vergassivellaunus
Guest
I inserted a backgroundworker form in my project.
My intention is to execute a long time evaluation without blocking the graphic interface.
These 2 routines should do the job:
Public Sub BackgroundWorker1_RunWorkerCompleted(sender As Object, e As ComponentModel.RunWorkerCompletedEventArgs) Handles BackgroundWorker1.RunWorkerCompleted
End Sub
Public Sub BackgroundWorker1_DoWork(sender As Object, e As ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
math_evaluation()
End Sub
When math_evaluation is completed, RunWorkerCompleted should be triggered, but this does not happens.
Besides this, while i'm waiting, GUI remains not sensitive to mouse comands.
What is wrong?
Continue reading...
My intention is to execute a long time evaluation without blocking the graphic interface.
These 2 routines should do the job:
Public Sub BackgroundWorker1_RunWorkerCompleted(sender As Object, e As ComponentModel.RunWorkerCompletedEventArgs) Handles BackgroundWorker1.RunWorkerCompleted
End Sub
Public Sub BackgroundWorker1_DoWork(sender As Object, e As ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
math_evaluation()
End Sub
When math_evaluation is completed, RunWorkerCompleted should be triggered, but this does not happens.
Besides this, while i'm waiting, GUI remains not sensitive to mouse comands.
What is wrong?
Continue reading...