Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

revit exit error code

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
2399 Views, 3 Replies

revit exit error code

Does anyone know what the following code number means:

The program '[1328] Revit.exe' has exited with code -1073740791 (0xc0000409).

 

I'm trying to create an app that creates large number of families and whenever I get to the third family Revit crashes with this code.

3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

Below are details from the journal:


' 2:< DBG_WARN: TransactionStateInterface constructed with NULL ADoc.: line 20 of D:\Ship\2018_px64\Source\Revit\RevitDB\Undo\Interfaces\TransactionStateInterface.cpp.
' 2:< ::58:: Delta VM: Avail -2 -> 134178270 MB, Used +0 -> 535 MB, Peak +46 -> 581 MB; RAM: Avail -34 -> 3278 MB, Used +38 -> 767 MB, Peak +84 -> 813 MB
' 2:< GUI Resource Usage GDI: Avail 9162, Used 838, User: Used 438
' 2:< DBG_WARN: An internal error has occurred.
'
'Expect a soft crash after this warning.
'
'ApplicationException is being thrown on behalf of the function <enum TransactionStatus::Enum __cdecl SubTransaction::rollBack(void)>. Dump file: C:\Users\Paul\AppData\Local\Autodesk\Revit\Autodesk Revit 2018\Journals\journal.0287.0001.dmp: line 148 of d:\ship\2018_px64\source\revit\revitdb\gensrc\SubTransaction.gen.cpp.

Message 3 of 4
JimJia
in reply to: Anonymous

Paul Hildebrandt,

 

Per the journal, sounds it caused by null document, you may need to check if family document was opened or closed successfully:" TransactionStateInterface constructed with NULL ADoc"

 

Besides, here are some best practices about Revit crash trouble shooting, they're worth reading: 

https://knowledge.autodesk.com/support/revit-products/troubleshooting/caas/sfdcarticles/sfdcarticles...

 

 

 

 

 


Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
Message 4 of 4
Anonymous
in reply to: JimJia

Turns out there was an open SUBtransaction. For future reference the following doesn't through an exception but should:

 

Transaction tr = new Transaction(familyDocument, name);
 tr.Start();
SubTransaction str = new SubTransaction(familyDocument);
str.Start();
SubTransaction str = new SubTransaction(familyDocument);
str.Start();
str.Commit();
tr.Commit();

It seems to work for a couple loops but then Revit crashes.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report