Revit 2022 Don't Close?

Revit 2022 Don't Close?

Chuong.Ho
Advocate Advocate
754 Views
6 Replies
Message 1 of 7

Revit 2022 Don't Close?

Chuong.Ho
Advocate
Advocate

Hello Everyone,

I saw this problem recently when I updated on Revit 2022 to write some code,I have to disable them through task manager to build solution because event auto copy code to folder add-in.The program remains open in the background and does not close.

Anyone having the same problem as me? Any answer is appreciated

ChuongHo_0-1633574897906.png

 

Chuong Ho

EESignature

0 Likes
755 Views
6 Replies
Replies (6)
Message 2 of 7

ameer.mansourWAK8Y
Advocate
Advocate

do you attach revit to your code or you use start programe from visual studio?

0 Likes
Message 3 of 7

Chuong.Ho
Advocate
Advocate

No, I just loaded the dll from add-in manager

Chuong Ho

EESignature

0 Likes
Message 4 of 7

ameer.mansourWAK8Y
Advocate
Advocate

you are using macros right?

0 Likes
Message 5 of 7

thanhpt.en
Explorer
Explorer

I am having the same problem. Have you found the reason yet?

0 Likes
Message 6 of 7

ctm_mka
Collaborator
Collaborator

@Chuong.Hoinstead of auto copying to add in folder, try loading (from add in manager) from the debug path, or literally anywhere Revit is not looking for add ins. Since you are not actively debugging (aka starting Revit from from Visual Studio or whatever IDE you are using) there is no reason Revit would be closed. Im not sure why you need to do it from Task manager though, does regular close not work?

0 Likes
Message 7 of 7

thanhpt.en
Explorer
Explorer

In my case, when I close Revit, the application appears to shut down, but it continues running in the Task Manager. Upon checking the log, I see that the OnShutdown method in the code is still executing, but the application is not fully terminating.

 
0 Likes