Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIntPtr in virDomainInfo #6

Open
WenceyWang opened this issue Dec 8, 2020 · 1 comment
Open

UIntPtr in virDomainInfo #6

WenceyWang opened this issue Dec 8, 2020 · 1 comment

Comments

@WenceyWang
Copy link
Contributor

/// <summary>
/// The maximum memory in KBytes allowed.
/// </summary>
[MarshalAs(UnmanagedType.SysUInt)]
public UIntPtr maxMem;
/// <summary>
/// The memory in KBytes used by the domain.
/// </summary>
[MarshalAs(UnmanagedType.SysUInt)]
public UIntPtr memory;

Tries to UIntPtr to get the correct length. The problem is that the libvirt-0.dll being called might be different from the dotnet platform (call 32bit libvirt-0.dll from 64bit dotnet or else).

I think this problem should be fixed from libvirt itself because I do not think I can find a way to workaround.

@WenceyWang
Copy link
Contributor Author

I have talked with our friends who also maintain some C# shim for *nix oriented lib. They suggest me to maintain a patch for the lib and provide Windows .dll build by ourselves.

Do you still have time to review or maintain this project? pls take a look at my PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant