Skip to content
This repository has been archived by the owner on Apr 26, 2018. It is now read-only.

System.OutOfMemoryException throws when i tried to run the code on ubuntu #13

Open
Milkitic opened this issue Mar 27, 2018 · 1 comment

Comments

@Milkitic
Copy link

Hello.
The project itself is an ASP.NET Core Application, and I wish to draw some images with more code.
On Windows it runs normally when I start the program with "dotnet xxxx.dll" but on Ubuntu it was crash while the systemis available for about 1316000KB memory.
I tried to reduce the code a little and it runs normally.
But how to solve it if i want to keep the code length?

System.OutOfMemoryException: Not enough memory to complete operation [GDI+ status: OutOfMemory]
   at System.DrawingCore.GDIPlus.CheckStatus(Status status)
   at System.DrawingCore.Graphics.DrawLine(Pen pen, PointF pt1, PointF pt2)
   at Daylily.Plugin.Command.PpPlus.Draw(String user, Dictionary`2 d_pfmance)
   at Daylily.Plugin.Command.PpPlus.Execute(String params, String user, String group, Boolean isRoot)
@303248153
Copy link
Member

Please try the official system.drawing package for .net core, soon it will replace this fork.
https://www.nuget.org/packages/System.Drawing.Common

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

No branches or pull requests

2 participants