Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing bitmap.Dispose() during XferMech File, Memory overflow [sf#18] #22

Open
kolomiets opened this issue Apr 5, 2017 · 1 comment
Milestone

Comments

@kolomiets
Copy link
Contributor

Reported by propperdx on 2015-12-02 11:45 UTC
I found a memory overflow becouse of a missing Dispose()

Method ScanCallback in TWAINCSToolkit.

~Line 1854

msgPendingxfers = ReportImage("ScanCallback: 010", TWAIN.DG.IMAGE.ToString(), TWAIN.DAT.IMAGEFILEXFER.ToString(), TWAIN.MSG.GET.ToString(), CvtSts(sts), bitmap, szFilename, m_twain.ImageinfoToCsv(twimageinfo), null, 0);
bitmap.Dispose();  // !!! 
bitmap = null;

Thanks
Tobias

@kolomiets
Copy link
Contributor Author

Updated by mlmcl on 2016-09-02 18:24 UTC

  • status: open --> pending
  • assigned_to: Mark

@kolomiets kolomiets added this to the 1.0 milestone Apr 5, 2017
@kolomiets kolomiets changed the title Missing bitmap.Dispose() during XferMech File, Memory overflow Missing bitmap.Dispose() during XferMech File, Memory overflow [sf#18] Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant