Aquileo | Recent changes to ticketshttps://sourceforge.net/p/twainforcsharp/tickets/2017-07-13T14:59:09.831000ZRecent changes to ticketsAquileo | #12 Please provide a nuget package of your library2017-07-13T14:59:09.831000Z2017-07-13T14:59:09.831000ZCassiano Henrique M. Oliveirahttps://sourceforge.net/u/cmendesoliveira/https://sourceforge.net3006667acbd65eb7193c51c1cf5cfb690daa70f1<div class="markdown_content"><p>By necessity I put on the nuget, if you need, just look for the name "scanDrivers" by c.mendes</p></div>Aquileo | #4 Setup Scanner does not work in twancsscan (dialog freezes)2017-03-08T14:17:36.540000Z2017-03-08T14:17:36.540000ZKeats Yhttps://sourceforge.net/u/neokeats/https://sourceforge.net84fd5906c84b1b110a01b5da32efc93f5eae534a<div class="markdown_content"><p>the bug is back in 2.3.2.0</p></div>Aquileo | TWAIN string aren't correctly handling localized content...2016-09-02T18:29:59.936000Z2016-09-02T18:29:59.936000ZMarkhttps://sourceforge.net/u/mlmcl/https://sourceforge.netb9817a0bfdea0ed0b5397f061415a379f7d50dcd<div class="markdown_content"><p>TWAIN strings (TW_STR32, TW_STR64, etc) don't correctly handle codepages on Windows, which causes problems when the contents pf those strings are localized. The code was using UTF8 encoding on Windows, and it was using strings when it should have been using byte arrays...</p></div>Aquileo | #18 Missing bitmap.Dispose() during XferMech File, Memory overflow2016-09-02T18:24:01.567000Z2016-09-02T18:24:01.567000ZMarkhttps://sourceforge.net/u/mlmcl/https://sourceforge.netdfb5515c244f54e74398f291477ac02ac7a80fce<div class="markdown_content"><ul> <li><strong>status</strong>: open --&gt; pending</li> <li><strong>assigned_to</strong>: Mark</li> </ul></div>Aquileo | #19 OutOfMemoryException in call to WindowsTwaindsmDsmEntryUserinterface external method.2016-09-02T18:23:37.018000Z2016-09-02T18:23:37.018000ZMarkhttps://sourceforge.net/u/mlmcl/https://sourceforge.net764f248ef28e3d357632db71f918be2aafad5d33<div class="markdown_content"><ul> <li><strong>status</strong>: open --&gt; pending</li> <li><strong>assigned_to</strong>: Mark</li> </ul></div>Aquileo | #12 Please provide a nuget package of your library2016-08-24T06:28:40.267000Z2016-08-24T06:28:40.267000Zmpaulhttps://sourceforge.net/u/mpaul1979/https://sourceforge.neta8846ed9b279a889339fed61e5e406c3ce84aa6b<div class="markdown_content"><p>Hello,</p> <p>do you already know when you will provide your library as a nuget-package?</p> <p>Regards</p> <p>mpaul</p></div>Aquileo | #11 Many Scanners don't work with this library2016-03-21T21:00:59.632000Z2016-03-21T21:00:59.632000Zhttps://sourceforge.nethttps://sourceforge.net7f7887db6be901646fd58f142f59d8479e2d4b09<div class="markdown_content"><p>Hallo! Microsoft Live Cam is working now. Nikon Coolscan still crashes and if I embed the application in my vb.net app the library crashes on rollback state with Twain Sample Source.</p> <p>Regards Hans</p></div>Aquileo | #11 Many Scanners don't work with this library2016-03-21T10:48:43.394000Z2016-03-21T10:48:43.394000Zd-fenshttps://sourceforge.net/u/userid-2212112/https://sourceforge.net5c088cb71a22fe3663bdc12cf2f0b3db0f9d4b9f<div class="markdown_content"><p>@Mark:</p> <p>Is there anything that can eb further debugged? It would really be great if this issue could be resolved!</p></div>Aquileo | #19 OutOfMemoryException in call to WindowsTwaindsmDsmEntryUserinterface external method.2016-01-28T16:04:09.245000Z2016-01-28T16:04:09.245000ZDiego Torreshttps://sourceforge.net/u/diegot1106/https://sourceforge.netc752d0578075b59ccca53e9e76c89d38a40fa201<div class="markdown_content"><p>After intensive research, I found the solution so you can scan without getting memory overflow or OutOfMemoryException. Basically we need to <strong>dispose</strong> (Bitmap) and <strong>free</strong> resources (IntPtr). Basically the fixes should be done in two methods of the TWAIN class. Last advise is: Do not store each retrieved bitmap in a list in memory because it also takes a lot of memory</p> <p>Class: TWAIN<br/> Method: NativeToBitmap(Platform a_platform, IntPtr a:intptrNative)<br/> Solution: Add these sentences after Bitmap bitmap = new Bitmap(bitmapStream);;</p> <div class="codehilite"><pre>// Cleanup... bitmapStream.Dispose(); memorystream.Dispose(); memorystream.Close(); bitmapStream = null; memorystream = null; bBitmap = null; //D.T. 25/01/2015 DsmMemFree(ref intptrNative); // Return our bitmap... DsmMemUnlock(a_intptrNative); return (bitmap); </pre></div> <p>Class: TWAIN<br/> Method:STS DatImagenativexfer(DG a_dg, MSG a_msg, ref Bitmap a_bitmap)<br/> Solution: The if (sts == STS.XFERDONE) block should look like this:</p> <div class="codehilite"><pre>if (sts == STS.XFERDONE) { // Bump our state... m_state = STATE.S7; // Turn the DIB into a Bitmap object... // D.T. 25/01/2015 : This method also takes between 40 and 50 MB // that needs to be cleaned. a_bitmap = NativeToBitmap(ms_platform, intptrBitmap); // We're done with the data we got from the driver... //Marshal.FreeHGlobal(intptrBitmap); //intptrBitmap = IntPtr.Zero; DsmMemFree(ref intptrBitmap); } </pre></div> <p>I'll write a more detailed and explained article on this, however not sure when but I will.<br/> Thanks.<br/> Diego Torres</p></div>Aquileo | OutOfMemoryException in call to WindowsTwaindsmDsmEntryUserinterface external method.2016-01-19T16:57:37.605000Z2016-01-19T16:57:37.605000ZDiego Torreshttps://sourceforge.net/u/diegot1106/https://sourceforge.net1b6c37fb7ee1a3ab5b35eeafec1a6a05d5195066<div class="markdown_content"><p>The <strong>DatImagenativexferWindowsTwainDsm() </strong>method in the <strong>TWAIN </strong>class makes a call to <strong>WindowsTwaindsmDsmEntryImagenativexfer</strong> that make the amount of ram to increase a lot. I scan in duplex mode (about 30 to 50 sheets/papers) and I always run out of memory.</p> <p>Additional Details:</p> <p>The method WindowsTwaindsmDsmEntryImagenativexfer is an external method located in "twaindsm.dll" so I don't know how to proceed and fix it.</p></div>