...and to answer myself again, change the following line:
System.Reflection.ParameterModifier pm =
new System.Reflection.ParameterModifier( tempArgs.Length );
to this so it will handle COM calls without arguments:
System.Reflection.ParameterModifier pm =
new System.Reflection.ParameterModifier( tempArgs.Length > 0 ?
tempArgs.Length : 1);
--
- Petter Nilsen, [EMAIL PROTECTED]
Technical Manager, Internet Development, Visma Software ASA
You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.