twain / twain-direct

Main TWAIN Direct repository
MIT License
30 stars 18 forks source link

Reallocate a biggest memory buffer in Memory and MemFile Transfer #18

Open josediazfer opened 3 years ago

josediazfer commented 3 years ago

If the transfered data is tiny and the image captured is huge then the ReAllocHGlobal method is invoked too many times and that causes excessive CPU usage and slowness