The problem of GetAllExternalReferences

When I used the GetAllExternalReferences to get References,the SW2007 was be restart.

The 'On error ' line can not catch the error.

The error is the reference file was losted.

I think that is a bug with GetAllExternalReferences.

How to catch the error?

SolidworksApi macros