7.3 - ThumbNailEX + .Net 4 Error

Discussions about document viewing.
Post Reply
ITSWAJ
Posts: 4
Joined: Tue Dec 21, 2010 2:30 pm

7.3 - ThumbNailEX + .Net 4 Error

Post by ITSWAJ » Tue Dec 21, 2010 2:36 pm

After Upgrading to 7.3 I get the following Error when I try to use a ThumbNailEx Control with .Net 4 - 7.2 works fine btw:
Error 5: At Line: 3 Err.Desc: 'An error occurred creating the form. See Exception.InnerException for details. The error is: Attempt by security transparent method 'Ꮾ.Ἳ.὆(IntPtr, Int32 ByRef, Int32 ByRef, Int32 ByRef, Int32 ByRef, Int32 ByRef)' to call native code through method 'Ꮾ.⸡.⸵(IntPtr, ScrollBarDirection, SCROLLINFO ByRef)' failed. Methods must be security critical or security safe-critical to call native code.' Exception: 'System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: Attempt by security transparent method 'Ꮾ.Ἳ.὆(IntPtr, Int32 ByRef, Int32 ByRef, Int32 ByRef, Int32 ByRef, Int32 ByRef)' to call native code through method 'Ꮾ.⸡.⸵(IntPtr, ScrollBarDirection, SCROLLINFO ByRef)' failed. Methods must be security critical or security safe-critical to call native code. ---> System.MethodAccessException: Attempt by security transparent method 'Ꮾ.Ἳ.὆(IntPtr, Int32 ByRef, Int32 ByRef, Int32 ByRef, Int32 ByRef, Int32 ByRef)' to call native code through method 'Ꮾ.⸡.⸵(IntPtr, ScrollBarDirection, SCROLLINFO ByRef)' failed. Methods must be security critical or security safe-critical to call native code.
at Ꮾ.Ἳ.὆(IntPtr ὇, Int32& Ὀ, Int32& Ὁ, Int32& Ὂ, Int32& Ὃ, Int32& Ὄ)
at GdPicture.ThumbnailEx.「()
at GdPicture.ThumbnailEx.〗()
at GdPicture.ThumbnailEx._Lambda$__1(Object a0, EventArgs a1)
at System.Windows.Forms.Control.OnResize(EventArgs e)
at System.Windows.Forms.ListView.OnResize(EventArgs e)
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height)
at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)
at System.Windows.Forms.Layout.DefaultLayout.xLayoutDockedControl(IArrangedElement element, Rectangle newElementBounds, Boolean measureOnly, Size& preferredSize, Rectangle& remainingBounds)
at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedControls(IArrangedElement container, Boolean measureOnly)
at System.Windows.Forms.Layout.DefaultLayout.xLayout(IArrangedElement container, Boolean measureOnly, Size& preferredSize)
at System.Windows.Forms.Layout.DefaultLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)
at System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)
at System.Windows.Forms.ContainerControl.OnLayout(LayoutEventArgs e)
at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)
at System.Windows.Forms.Control.ControlCollection.Add(Control value)
at GdPicture.ThumbnailEx..ctor()
--- End of inner exception stack trace ---

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: 7.3 - ThumbNailEX + .Net 4 Error

Post by Loïc » Tue Dec 21, 2010 5:33 pm

Hi,

How to reproduce the problem ?

Kind regards,

Loïc

ITSWAJ
Posts: 4
Joined: Tue Dec 21, 2010 2:30 pm

Re: 7.3 - ThumbNailEX + .Net 4 Error

Post by ITSWAJ » Tue Dec 21, 2010 6:31 pm

uploaded a project where I get the error - just open the designer or start it

using 7.3 Dlls - Framework 4.0 - vs2010 & vb.net

the 7.2 Ones work fine though
Attachments
gdpicture_test.zip
(307.55 KiB) Downloaded 392 times

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: 7.3 - ThumbNailEX + .Net 4 Error

Post by Loïc » Tue Dec 21, 2010 7:15 pm

Hi,

Thank you. We will fix this issue for the next minor release (to be released within 7 days).

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests