What can I do if I receive a "perfrun.exe" crash when replaying a COM script?
COM Support was deprecated in Silk Performer 2011, so this article is only applicable up until Silk Performer version 2010 R2.
If you encounter a COM crash when replaying a COM script the reason may be that Silk Performer's COM Support has a setting where you can limit the number of array elements passed or returned to a COM interface method. The default setting is three, and is found at:
SETTINGS | ACTIVE PROFILE | RECORD | COM/ADO | SETTINGS Tab
If your script passes multi-dimensional arrays with more than three elements then this setting will need to be adjusted accordingly.
Another symptom of this problem is that the recorder will comment some lines in the script because the Silk Performer recorder doesn't record array elements of an index higher than the profile setting.
//ComSetBounds(hFunc0, "arrSPParams", 1, 4);
To resolve this issue you should change the profile setting "Max number of table elements" in the COM profile section to a higher number so that all elements will be recorded.
After changing this setting you should record a new script.