>We''ve got an exception, trying to start program with Diagram. After the canvas is drawn, we try to add any elements and got an exeptions on elements painting. Can you tell what is the reason?
> at System.Windows.Forms.DibGraphicsBufferManager.CreateCompatibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits)
> at System.Windows.Forms.DibGraphicsBufferManager.CreateBuffer(IntPtr src, Int32 offsetX, Int32 offsetY, Int32 width, Int32 height)
> at System.Windows.Forms.DibGraphicsBufferManager.AllocBuffer(Graphics targetGraphics, IntPtr targetDC, Rectangle targetBounds)
> at System.Windows.Forms.DibGraphicsBufferManager.AllocBuffer(IntPtr target, Rectangle targetBounds)
> at System.Windows.Forms.Control.WmPaint(Message& m)
> at System.Windows.Forms.Control.WndProc(Message& m)
> at System.Windows.Forms.Label.WndProc(Message& m)
> at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
> at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
> at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
>We have tryed to remov gradients, shadows and alpha, but the situation is the same..
We explore this problem on 4 PC in our company:
1) Developer PC1 (my computer), ALL OK (OS= win XP sp2 with all updates from microsopft.com, last version of syncfusion essential studio)
2) Developer PC2, ALL OK, but we have a problem with resourses files (2 lines in costructor of form, and this 2 lines were added by Visual Studio, this 2 lines thrown the exceptions, but when I comment this lines, all goes as it should be) (OS win XP)
3) Developer PC 3, exception (and also problem whith 2 lines in code) (OS Win XP)
4) VmWare PC, exception. This is clear machine, only clear Win2000 and Framework.NET (it was take from VS.NET distributive)
5) Client machine (Win 2000 whith different programms), exception.
As you can see Win2000 is not couse of problem, becouse problem has happened on winXP computers.
Objects that I draw in diagramm are from syncfusion samples (it is rectangle with label).
There is a link between two rectangles. This link is added like sample http://www.syncfusion.com/support/kb/diagram/Default.aspx?ToDo=view&questId=24