Jan - 2014-12-17

I see the same issue using Apsentech's Aspen Custom Modeler type library.

The problem on line 511 in dynamic.py shows my invoke call is also failing with -2147352567. The invoke call requires a string argument which it is not getting at this point in the code.

I think this is by intention? The exception would drop into a _make_method call which I believe is correct (this is the first time the invoke/method is ever executing).

I added this error code to winerror.ERRORS_BAD_CONTEXT and the outcome is what I expected (method is "created" and executes correctly).