We don't want to dispose the app and event handler
This commit is contained in:
@@ -37,7 +37,7 @@ namespace xUnitRevit
|
||||
private void ControlledApplication_ApplicationInitialized(object sender, Autodesk.Revit.DB.Events.ApplicationInitializedEventArgs e)
|
||||
{
|
||||
var app = sender as Application;
|
||||
using var uiapp = new UIApplication(app);
|
||||
var uiapp = new UIApplication(app);
|
||||
|
||||
Runner.ReadConfig();
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace xUnitRevit
|
||||
try
|
||||
{
|
||||
var queue = new List<Action>();
|
||||
using var eventHandler = ExternalEvent.Create(new ExternalEventHandler(queue));
|
||||
var eventHandler = ExternalEvent.Create(new ExternalEventHandler(queue));
|
||||
|
||||
xru.Initialize(uiapp, SynchronizationContext.Current, eventHandler, queue);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user