Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#11 renderengine dll crash

open
nobody
SVG DOM (5)
5
2006-04-13
2006-04-13
Francisco Pires
No

SvgWindow window = (SvgWindow)svgPictureBox.Window;

svgPictureBox.LoadXml("<svg
xmlns='http://www.w3.org/2000/svg'/>");

I'm doing this piece of code on my form constructor,
and i have the following windows form initialization:

this.svgPictureBox.AutoSize = true;

this.svgPictureBox.Dock =
System.Windows.Forms.DockStyle.Fill;

this.svgPictureBox.Location = new
System.Drawing.Point(0, 0);

this.svgPictureBox.Name = "svgPictureBox";

this.svgPictureBox.Size = new System.Drawing.Size(624,
381);

this.svgPictureBox.Surface = null;

this.svgPictureBox.TabIndex = 25;

when i minimize the window, a nullpointerexception is
thrown at GraphicsNode.BeforeRender(ISvgRenderer
renderer) overriden method. More exactly, at the
following line:

graphicsContainer = graphics.BeginContainer();

Discussion