<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>alphamobilecontrols Work Item Rss Feed</title><link>http://www.codeplex.com/alphamobilecontrols/WorkItem/List.aspx</link><description>alphamobilecontrols Work Item Rss Description</description><item><title>Commented Issue: Native Exception in AlphaImage Draw method [3720]</title><link>http://alphamobilecontrols.codeplex.com/workitem/3720</link><description>The problem is because a managed array is passed to the COM object. Once the garbage collector decides to free&amp;#47;move this array all hell break loose. &lt;br /&gt;Here&amp;#39;s a fix&amp;#58;&lt;br /&gt;In IImagingFactory.cs, replace&amp;#58;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47; We need the MarshalAs attribute here to keep COM interop from sending the buffer down as a Safe Array.&lt;br /&gt;uint CreateImageFromBuffer&amp;#40;&amp;#91;MarshalAs&amp;#40;UnmanagedType.LPArray&amp;#41;&amp;#93; byte&amp;#91;&amp;#93; buffer, uint size, BufferDisposalFlag disposalFlag, out IImage image&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;With&amp;#58;&lt;br /&gt;&lt;br /&gt;uint CreateImageFromBuffer&amp;#40;IntPtr buffer, uint size, BufferDisposalFlag disposalFlag, out IImage image&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;In AlphaImage.cs add this in the top of the file&amp;#58;&lt;br /&gt;&lt;br /&gt;using System.Runtime.InteropServices&amp;#59;&lt;br /&gt;&lt;br /&gt;And replace&amp;#58;&lt;br /&gt;&lt;br /&gt;factory.CreateImageFromBuffer&amp;#40;pbBuf, cbBuf, BufferDisposalFlag.BufferDisposalFlagNone, out alphaImage._image&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;With&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47; Copy stream data into an unmanaged global buffer that will be freed by the factory once image is decoded&lt;br /&gt;&amp;#47;&amp;#47; note that we cannot pass pbBuf directly since it might be moved around or freed by the gc. &lt;br /&gt;IntPtr p &amp;#61; Marshal.AllocHGlobal&amp;#40;&amp;#40;int&amp;#41;cbBuf&amp;#41;&amp;#59;&lt;br /&gt;Marshal.Copy&amp;#40;pbBuf, 0, p, &amp;#40;int&amp;#41;cbBuf&amp;#41;&amp;#59;&lt;br /&gt;factory.CreateImageFromBuffer&amp;#40;p, cbBuf, BufferDisposalFlag.BufferDisposalFlagGlobalFree, out alphaImage._image&amp;#41;&amp;#59;&lt;br /&gt;Comments: ** Comment from web user: INTPnerd ** &lt;p&gt;Sweet bug fix&amp;#33; This really needs to be applied to the code base. The library completely unstable and unusable without this bug fix if your code uses the AlphaImage.CreateFromStream&amp;#40;...&amp;#41; or AlphaImage.CreateFromResource&amp;#40;...&amp;#41; methods at all.&lt;/p&gt;</description><author>INTPnerd</author><pubDate>Fri, 12 Nov 2010 02:28:25 GMT</pubDate><guid isPermaLink="false">Commented Issue: Native Exception in AlphaImage Draw method [3720] 20101112022825A</guid></item><item><title>Commented Issue: Native Exception in AlphaImage Draw method [3720]</title><link>http://alphamobilecontrols.codeplex.com/WorkItem/View.aspx?WorkItemId=3720</link><description>The problem is because a managed array is passed to the COM object. Once the garbage collector decides to free&amp;#47;move this array all hell break loose. &lt;br /&gt;Here&amp;#39;s a fix&amp;#58;&lt;br /&gt;In IImagingFactory.cs, replace&amp;#58;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47; We need the MarshalAs attribute here to keep COM interop from sending the buffer down as a Safe Array.&lt;br /&gt;uint CreateImageFromBuffer&amp;#40;&amp;#91;MarshalAs&amp;#40;UnmanagedType.LPArray&amp;#41;&amp;#93; byte&amp;#91;&amp;#93; buffer, uint size, BufferDisposalFlag disposalFlag, out IImage image&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;With&amp;#58;&lt;br /&gt;&lt;br /&gt;uint CreateImageFromBuffer&amp;#40;IntPtr buffer, uint size, BufferDisposalFlag disposalFlag, out IImage image&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;In AlphaImage.cs add this in the top of the file&amp;#58;&lt;br /&gt;&lt;br /&gt;using System.Runtime.InteropServices&amp;#59;&lt;br /&gt;&lt;br /&gt;And replace&amp;#58;&lt;br /&gt;&lt;br /&gt;factory.CreateImageFromBuffer&amp;#40;pbBuf, cbBuf, BufferDisposalFlag.BufferDisposalFlagNone, out alphaImage._image&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;With&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47; Copy stream data into an unmanaged global buffer that will be freed by the factory once image is decoded&lt;br /&gt;&amp;#47;&amp;#47; note that we cannot pass pbBuf directly since it might be moved around or freed by the gc. &lt;br /&gt;IntPtr p &amp;#61; Marshal.AllocHGlobal&amp;#40;&amp;#40;int&amp;#41;cbBuf&amp;#41;&amp;#59;&lt;br /&gt;Marshal.Copy&amp;#40;pbBuf, 0, p, &amp;#40;int&amp;#41;cbBuf&amp;#41;&amp;#59;&lt;br /&gt;factory.CreateImageFromBuffer&amp;#40;p, cbBuf, BufferDisposalFlag.BufferDisposalFlagGlobalFree, out alphaImage._image&amp;#41;&amp;#59;&lt;br /&gt;</description><author>oliv26</author><pubDate>Mon, 09 Nov 2009 16:34:17 GMT</pubDate><guid isPermaLink="false">Commented Issue: Native Exception in AlphaImage Draw method [3720] 20091109043417P</guid></item><item><title>Created Issue: AlphaPictureBox controls do not support mouse even</title><link>http://alphamobilecontrols.codeplex.com/WorkItem/View.aspx?WorkItemId=4689</link><description>First of all, I would like to thanks to you group to share such great project to us. The question is I tried to make mouse dragable picturebox with AlphaMobileControls, but it does not work. Is any way that I can implentment this function.&lt;br /&gt;</description><author>peter_chen</author><pubDate>Fri, 31 Jul 2009 12:07:29 GMT</pubDate><guid isPermaLink="false">Created Issue: AlphaPictureBox controls do not support mouse even 20090731120729P</guid></item><item><title>Created Issue: Native Exception in AlphaImage Draw method</title><link>http://www.codeplex.com/alphamobilecontrols/WorkItem/View.aspx?WorkItemId=3720</link><description>The problem is because a managed array is passed to the COM object. Once the garbage collector decides to free&amp;#47;move this array all hell break loose. &lt;br /&gt;Here&amp;#39;s a fix&amp;#58;&lt;br /&gt;In IImagingFactory.cs, replace&amp;#58;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47; We need the MarshalAs attribute here to keep COM interop from sending the buffer down as a Safe Array.&lt;br /&gt;uint CreateImageFromBuffer&amp;#40;&amp;#91;MarshalAs&amp;#40;UnmanagedType.LPArray&amp;#41;&amp;#93; byte&amp;#91;&amp;#93; buffer, uint size, BufferDisposalFlag disposalFlag, out IImage image&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;With&amp;#58;&lt;br /&gt;&lt;br /&gt;uint CreateImageFromBuffer&amp;#40;IntPtr buffer, uint size, BufferDisposalFlag disposalFlag, out IImage image&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;In AlphaImage.cs add this in the top of the file&amp;#58;&lt;br /&gt;&lt;br /&gt;using System.Runtime.InteropServices&amp;#59;&lt;br /&gt;&lt;br /&gt;And replace&amp;#58;&lt;br /&gt;&lt;br /&gt;factory.CreateImageFromBuffer&amp;#40;pbBuf, cbBuf, BufferDisposalFlag.BufferDisposalFlagNone, out alphaImage._image&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;With&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47; Copy stream data into an unmanaged global buffer that will be freed by the factory once image is decoded&lt;br /&gt;&amp;#47;&amp;#47; note that we cannot pass pbBuf directly since it might be moved around or freed by the gc. &lt;br /&gt;IntPtr p &amp;#61; Marshal.AllocHGlobal&amp;#40;&amp;#40;int&amp;#41;cbBuf&amp;#41;&amp;#59;&lt;br /&gt;Marshal.Copy&amp;#40;pbBuf, 0, p, &amp;#40;int&amp;#41;cbBuf&amp;#41;&amp;#59;&lt;br /&gt;factory.CreateImageFromBuffer&amp;#40;p, cbBuf, BufferDisposalFlag.BufferDisposalFlagGlobalFree, out alphaImage._image&amp;#41;&amp;#59;&lt;br /&gt;</description><author>Statyk7</author><pubDate>Thu, 29 Jan 2009 01:09:04 GMT</pubDate><guid isPermaLink="false">Created Issue: Native Exception in AlphaImage Draw method 20090129010904A</guid></item><item><title>CREATED ISSUE: No fullscreen</title><link>http://www.codeplex.com/alphamobilecontrols/WorkItem/View.aspx?WorkItemId=2179</link><description>deriving a form from alphaform the application can&amp;#39;t be run in fullscreen mode, bottom bar still remains visible&lt;br /&gt;</description><author>perettigiuliano</author><pubDate>Fri, 16 May 2008 09:23:25 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: No fullscreen 20080516092325A</guid></item></channel></rss>