Objo.
Feedback Forum Docs Objo Studio
Feedback

Bug #212

Graphics.FillPolygon can crash on malformed point arrays

Status
Fixed
Fixed in
v26.5.6
Source discussion
https://forum.objo.dev/d/143-app-crash-when-canvas-class-call-method-fillpolygon
Last updated
2026-05-24

Public summary

Graphics.FillPolygon and Graphics.DrawPolygon expected a flat Array(Of Double) containing x/y coordinate pairs, but malformed arrays could reach the desktop graphics native method and throw an internal InvalidCastException instead of a friendly Objo runtime error. Polygon drawing now validates the input and reports InvalidArgument errors for non-array, nested, too-short, odd-length, or non-numeric point data.

Objo.

Build apps visually, deploy anywhere.

Feedback is a public read-only status mirror for Objo Studio.