admin
-
11/28/2006 8:57:33 AM
Re: TimeOut in Custom event handlers
Hi Alex,
the reason why the code time-outs is that you're executing a new query inside a new connection, while the INSERT transaction hasn't been commited yet which leads to a dead-lock. Actually, you do not need to call any extra query and the code can be simplified like this:
If CType(dataObj, CMS.DataEngine.DataClass).ClassName = "Moblin.Phone" Then Dim cmsDC As CMS.DataEngine.DataClass = CType(dataObj, CMS.DataEngine.DataClass) WriteTrace("Name=" & cmsDC.DataRow.Item(1)) End If
Best Regards,
|