Revit Crashes with - FilteredElementCollector Constructor (Document, ElementId, ElementId)

Hello All,

Has anyone tried using FilteredElementCollector Constructor (Document, ElementId, ElementId)? It causes my Revit session to crash with a message ‘Exception Processing Message 0xc00000005 - Unexpected Parameters.
Has anyone experienced the same? Any solution found?

Please advise.

If you want the community to advise you, please share what you are doing, else how are we to advise you?