Results 21 comments of josetr

@qingfengxia you just need to edit this line: https://github.com/mono/CppSharp/blob/af275edb55f4628266259ac7c19ea5a786b47aa6/Directory.Build.props#L42

What we seem to be doing right now works regardless of the compiler because the C++ standard requires it (as far as I know) and we are only exporting the...

This problem happens even in pure C++ because in order to do it safely you need to be 100% that everyone is using the same allocator / deallocator so the...

@atlaste @tritao @ddobrev We have `CppSharp.DriverOptions.GenerateFinalizers` but the default is `false`. I think the default should be `true`.

> @atlaste 's pointed out – NativeToManagedMap keeps objects alive. I missed that part. My bad. > But in practice such might disappear while the object is still needed thus...

@ddobrev Still sounds to me like it's your job to take care of that. The default shouldn't be to leak memory. Just doing `while(true) { new CppSharpClass(); }` in C#...

> The latter **might** be a mistake in the source C++ to begin with. The latter **is** a mistake. > It's **highly recommended** for destructors to be virtual when polymorphism...

@tritao I already took care of this issue as far as I know. https://github.com/mono/CppSharp/blob/9b69f147059cebc487353997680053ec7e39e253/tests/CSharp/CSharp.cpp#L1846 The problem is that none of my contributions will be available for most people until we...

> @josetr > When will you release the new version? It's been a long time since the last release [Soon](https://github.com/mono/CppSharp/pull/1541). We had to fix some issues that came up after...

@arivoir Just change your package debugger type to "Managed Only" as shown below: ![ManagedOnly](https://user-images.githubusercontent.com/37419832/129112076-37e746aa-8246-4386-a5c2-4a9352b08273.png)