Victor

Results 365 comments of Victor

@jgmarcel we can not fix the issue we can not reproduce. Does your scenario prohibit use of `malloc` allocator as suggested [above](https://github.com/pythonnet/pythonnet/issues/1977#issuecomment-1339701885)?

> But the reflectedObjects still contain a pointer to the deleted PyObject So this is not a trivial issue, and we need a reproducible example to debug on our side....

This is an issue with COM classes. Nobody likes to support COM. There are two workarounds: 1. Make a C# DLL that creates an instance of that class for you...

In your .csproj try explicitly specifying Windows as target platform. E.g. `net6.0-windows10.0` (beware it will change output path).

Do you know circumstances under which this happens? What is the scenario when we can have two different `MaybeType` with the same name? Perhaps this is what needs to be...

Maybe we should fix the `isinstance` and `issubclass` to return `True`, but can't you just do the following? ```python def is_clr_instance(obj, T): if hasattr(obj, '__implementation__'): return isinstance(obj.__implementation__, T) else: return...

@filmor won't fix then? The simple method above is a descent workaround.

@filmor basically, .NET's `is` and `as` functions directly on `clr` module?

Console is not a proper way to report errors. Either `AddReference` should throw or (if that can't be allowed due to backward compatibility concerns if it would fail too often)...