Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Exception ShapeNode / DrawString (Read 329 times)
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 129
Location: England
Joined: Oct 23rd, 2006
Exception ShapeNode / DrawString
May 7th, 2024 at 3:45pm
Print Post  
I think I may have reported this before, but I can't find the post. One or two users have reported the following exception when a ShapeNode is drawing text. I cannot reproduce the problem. Any ideas why it might be happening?
DavidL

Message               : Parameter is not valid.
Source                 : System.Drawing
Stack Trace           :
   at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
   at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)
   at MindFusion.Drawing.GdiGraphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)
   at MindFusion.Diagramming.ShapeNode.c2fa8ddcea66de378dd2b3effa46b7080(c48b3fdd1c915
6f9901cdeee6911ffe6e c709ceac15c918fc392a6d51df8089edc)
   at MindFusion.Diagramming.ShapeNode.caf4474dadf19b15a82502e8142e562c6(IGraphics c6c92d7b0a001e45905428290158c2b17, RectangleF ce628c69113f2f8808f36872bc2738966, Boolean c9ad6e71c98bc3301de210ef60cbebaf6, Brush cfe6c9db5410bcfcba1e5ef84f3723807, Pen c70516b352fa4534e29f3eea90837a640, RenderOptions ccf51cc94bd4a2fb3622e3aa9f3d15511)
   at MindFusion.Diagramming.ShapeNode.DrawLocal(IGraphics graphics, RenderOptions options)
   at MindFusion.Diagramming.DiagramNode.Draw(IGraphics graphics, RenderOptions options)
   at MindFusion.Diagramming.Diagram.c36c1fca3b267b5451f759c0295c2805a(IGraphics c6c92d7b0a001e45905428290158c2b17, DiagramItem ca6e827fc07fcc9e1bcb0b1fce21834e2, Boolean c1e4be7b4a08ee92d4d8160fe7cdf183b, Nullable`1 cba5fe945e4bbdbc1273efda679d7f4fe)
   at MindFusion.Diagramming.Diagram.c85c9fb5f1477600f0b8e47a76b97a8a7(IGraphics c6c92d7b0a001e45905428290158c2b17, RectangleF cba5fe945e4bbdbc1273efda679d7f4fe, Boolean cee688e3e023124b817ff45ba0aee6409)
   at MindFusion.Diagramming.Diagram.Draw(IGraphics graphics, RenderOptions options, RectangleF clipRect, Boolean backBuffer)
   at MindFusion.Diagramming.WinForms.DiagramView.cbdcbabce8bb735d287c1c0e3584d6497(IG
raphics c6c92d7b0a001e45905428290158c2b17, RectangleF c9261db5050cfcb2acba21bce194905d7, Boolean cee688e3e023124b817ff45ba0aee6409)
   at MindFusion.Diagramming.WinForms.DiagramView.OnPaint(PaintEventArgs pe)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at MindFusion.Common.WinForms.TouchControl.WndProc(Message& m)
   at MindFusion.Diagramming.WinForms.DiagramView.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3228
Joined: Oct 19th, 2005
Re: Exception ShapeNode / DrawString
Reply #1 - May 7th, 2024 at 6:01pm
Print Post  
We discussed it here, reproducing that when zoom level is very small -
https://mindfusion.eu/Forum/YaBB.pl?num=1607687524/7#7

Versions 7.0.1+ now have try/catch around all GDI+ DrawString calls.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 129
Location: England
Joined: Oct 23rd, 2006
Re: Exception ShapeNode / DrawString
Reply #2 - May 7th, 2024 at 8:32pm
Print Post  
OK, I will upgrade to 7.0.2 and hopefully, this problem will go away. Do you send out emails for minor releases such as 7.0.1 and 7.0.2?

DavidL
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3228
Joined: Oct 19th, 2005
Re: Exception ShapeNode / DrawString
Reply #3 - May 8th, 2024 at 6:46am
Print Post  
We do for all versions, but emails are getting hard to deliver with recent requirements by email hosts (https://www.valimail.com/blog/the-new-requirements-for-email-delivery-at-gmail/). We'll be implementing these soon hopefully. If you use the nuget package, you will also see when updates are available in the Visual Studio UI.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint