Consider the scenario where you are creating an instance of a .NET component exposed to COM using .NET / COM Interop, and you are doing this in a multi-threaded application. Intermittently it fails to create the instance of the component and the error is:
HRESULT: 0x80070057 (ERROR_INVALID_PARAMETER)
You might see the error message 'One or more arguments are incorrect' or if you are creating this component from Visual Basic 6 you might see 'Invalid Procedure Call or Argument'.
HRESULT: 0x80070057 (ERROR_INVALID_PARAMETER)
You might see the error message 'One or more arguments are incorrect' or if you are creating this component from Visual Basic 6 you might see 'Invalid Procedure Call or Argument'.