This project has moved. For the latest updates, please go here.

GDI+ error

Jan 21, 2015 at 5:25 AM
hi ,when i listen the AcquireCompleted Event and then call this._twain32.GetImage(i).Save(Path.GetTempFileName()); and the general error in GDI+ occured.

so what is the problem?please help me!thanks
Coordinator
Jan 21, 2015 at 2:42 PM
Hello, cqulli.
Specify the type of exception and a stack trace. See Saraff.Twain.Sample2.
Jan 25, 2015 at 12:17 AM
sample2 has the same problem.it occurs randomly.as twain32._images are generated by MemoryStream,and When loading an image from a Stream, we have to keep the stream open for the lifetime of the image, as MSDN Image.FromStream mentioned,howerver MemoryStream may be collected by GC.
Coordinator
Jan 25, 2015 at 4:23 AM
Hello, cqulli.
Specify the type of exception and a stack trace of exception.