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.
Solved! Go to Solution.
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.
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:
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.