Message 1 of 4
ObjectModified error

Not applicable
08-27-2007
05:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When I use ObjectModified event to do something and following code causes error:
private void callback_ObjectModified(object sender, ObjectEventArgs e)
{
try
{
using (Transaction trans = HostApplicationServices.WorkingDatabase.TransactionManager.StartTransaction())< br> {
/*do something*/
trans.commit();
}
}
catch (Exception ex)
{
/*do something*/
}
}
the code crash at StartTransaction(), then I cannot fix it.
Thanks for help
private void callback_ObjectModified(object sender, ObjectEventArgs e)
{
try
{
using (Transaction trans = HostApplicationServices.WorkingDatabase.TransactionManager.StartTransaction())< br> {
/*do something*/
trans.commit();
}
}
catch (Exception ex)
{
/*do something*/
}
}
the code crash at StartTransaction(), then I cannot fix it.
Thanks for help