BTW, only parameter 3 causes this error - all other parameters (0,1,2) do not cause this error. Why do you need 3 here?
>Naomi --
>
>I guess I have less faith than you that reporting a bug to Microsoft is going to have any effect.
>
>In any case, if the code I gave you causes the same problem, you could just as easily report it.
>
>
>>>I have been downloaded the files and have been able to reproduce the error.
>>>
>>>I have also been able identify the line of code that causes the error.
>>>
>>>However, I have not been able to identify the circumstances which cause this line to fail for this one class only -- but not for all the thousands of other uses of PEMEditor.
>>>
>>>(sigh)
>>>
>>>This error can be reproduced outside or PEMEditor, once you have done Modify Class:
>>>
ASelObj(aObjects,1)
>>>oObject = aObjects(1)
>>>Amembers( laLines, oObject, 3 )
>>>
>>
>>Yes, reproducible. Looks like an internal bug in aMembers function - but I don't know if there are chances for it to be fixed?
>>
>>Perhaps you can file a bug report at Microsoft channel for bugs and we can vote for this?
If it's not broken, fix it until it is.
My Blog