当我跑
docker run -i -t python /bin/bash
Run Code Online (Sandbox Code Playgroud)
结果终端没有颜色。
我查看了以下链接,但没有帮助:
https://groups.google.com/forum/#!topic/docker-user/Bp4BaWRw6k4
https://github.com/docker/docker/issues/9299
我在 Windows 10 上使用 Docker 工具箱中的 Docker 快速入门终端。我有 Docker 版本 1.12.0,构建 8eab29e。
你如何固定Marshal.AllocHGlobal()分配的内存?
我的第一次尝试如下:
int bytes = 10;
IntPtr ip = Marshal.AllocHGlobal(bytes);
GCHandle iph = GCHandle.Alloc(ip, GCHandleType.Pinned);
Run Code Online (Sandbox Code Playgroud)
虽然我认为这只是引脚IntPtr而不是引用的内存块IntPtr.