Aquileo | Recent changes to ticketshttps://sourceforge.net/p/twainforcsharp/tickets/Recent changes to ticketsenThu, 13 Jul 2017 14:59:09 -0000Aquileo | #12 Please provide a nuget package of your libraryhttps://sourceforge.net/p/twainforcsharp/tickets/12/?limit=25#fcfa/fc6e<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>Cassiano Henrique M. OliveiraThu, 13 Jul 2017 14:59:09 -0000https://sourceforge.net3006667acbd65eb7193c51c1cf5cfb690daa70f1Aquileo | #4 Setup Scanner does not work in twancsscan (dialog freezes)https://sourceforge.net/p/twainforcsharp/tickets/4/?limit=25#ae79<div class="markdown_content"><p>the bug is back in 2.3.2.0</p></div>Keats YWed, 08 Mar 2017 14:17:36 -0000https://sourceforge.net84fd5906c84b1b110a01b5da32efc93f5eae534aAquileo | TWAIN string aren't correctly handling localized content...https://sourceforge.net/p/twainforcsharp/tickets/20/<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>MarkFri, 02 Sep 2016 18:29:59 -0000https://sourceforge.netb9817a0bfdea0ed0b5397f061415a379f7d50dcdAquileo | #18 Missing bitmap.Dispose() during XferMech File, Memory overflowhttps://sourceforge.net/p/twainforcsharp/tickets/18/?limit=25#334f<div class="markdown_content"><ul> <li><strong>status</strong>: open --&gt; pending</li> <li><strong>assigned_to</strong>: Mark</li> </ul></div>MarkFri, 02 Sep 2016 18:24:01 -0000https://sourceforge.netdfb5515c244f54e74398f291477ac02ac7a80fceAquileo | #19 OutOfMemoryException in call to WindowsTwaindsmDsmEntryUserinterface external method.https://sourceforge.net/p/twainforcsharp/tickets/19/?limit=25#8996<div class="markdown_content"><ul> <li><strong>status</strong>: open --&gt; pending</li> <li><strong>assigned_to</strong>: Mark</li> </ul></div>MarkFri, 02 Sep 2016 18:23:37 -0000https://sourceforge.net764f248ef28e3d357632db71f918be2aafad5d33Aquileo | #12 Please provide a nuget package of your libraryhttps://sourceforge.net/p/twainforcsharp/tickets/12/?limit=25#fcfa<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>mpaulWed, 24 Aug 2016 06:28:40 -0000https://sourceforge.neta8846ed9b279a889339fed61e5e406c3ce84aa6bAquileo | #11 Many Scanners don't work with this libraryhttps://sourceforge.net/p/twainforcsharp/tickets/11/?limit=25#f637/695f<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>Mon, 21 Mar 2016 21:00:59 -0000https://sourceforge.net7f7887db6be901646fd58f142f59d8479e2d4b09Aquileo | #11 Many Scanners don't work with this libraryhttps://sourceforge.net/p/twainforcsharp/tickets/11/?limit=25#f637<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>d-fensMon, 21 Mar 2016 10:48:43 -0000https://sourceforge.net5c088cb71a22fe3663bdc12cf2f0b3db0f9d4b9fAquileo | #19 OutOfMemoryException in call to WindowsTwaindsmDsmEntryUserinterface external method.https://sourceforge.net/p/twainforcsharp/tickets/19/?limit=25#af6a<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>Diego TorresThu, 28 Jan 2016 16:04:09 -0000https://sourceforge.netc752d0578075b59ccca53e9e76c89d38a40fa201Aquileo | OutOfMemoryException in call to WindowsTwaindsmDsmEntryUserinterface external method.https://sourceforge.net/p/twainforcsharp/tickets/19/<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>Diego TorresTue, 19 Jan 2016 16:57:37 -0000https://sourceforge.net1b6c37fb7ee1a3ab5b35eeafec1a6a05d5195066