
July 3rd, 2006, 07:44 AM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 10

Time spent in forums: 3 h 41 m 5 sec
Reputation Power: 0
|
|
|
FbConnection failing me here.
I ve gotten a big...bigggg Problem with firebird, before i was using oledbConnection and i would easily run the sub below without any problem and the results would come very first.
But when i run this sub now, an exception below is thrown. i have tried to uncheck the ContextSwitchDeadLock and the LoaderLock but phew!! my application hangs when i click more that three cells in the datagridview.
Quote:
Managed Debugging Assistant 'ContextSwitchDeadlock' has detected a problem in 'C:\Documents and Settings\skea\Desktop\IncidentsFB\Incidents\bin\Debug\Incidents Tracker.exe'.
Additional Information: The CLR has been unable to transition from COM context 0x1a8c28 to COM context 0x1a8ab8 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations. |
Code:
Private Sub dgvIncidents_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgvIncidents.CellClick
getID()
PopulateIncidentTypeCombo()
PopulateIncidentCauseCombo()
PopulateDistrictCombo()
PopulateForm()
getDistValueByID()
End Sub
|