Skip to content

UIntPtr in virDomainInfo #6

@WenceyWang

Description

@WenceyWang
/// <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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions