【发布时间】:2023-03-16 11:35:02
【问题描述】:
我最近发现调用这个
[DllImport("libwebp.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "WebPGetInfo")] public static extern int WebPGetInfo(IntPtr data, uint dataSize, out int width, out int height);
已损坏,调用应返回宽度和高度,但使用新的 azure 函数升级后,在本地和 Azure 云中运行时,azure 函数调用的宽度和高度始终为零。
但是,对于 dotnet core web api 项目,相同的 WebP 包装器代码工作得非常好。我注意到最近的 Azure 功能升级将 func.exe 从 32 位更改为 64 位。我不确定这是否与它有关,因为 dotnet core web api 项目在 32 位和 64 位下都可以工作,但是 azure 函数应用程序在 32 位和 64 位上都坏了。
有人遇到过类似的问题吗?
【问题讨论】: