•  
  •  
  •  
 

Out Of Memory Error

Last post 05 Mar 2010, 7:09 AM by Glenn. 5 replies.
Sort Posts: Previous Next
  •  27 Feb 2010, 4:25 AM 20265

    Out Of Memory Error

    Hello

    I am scanning so many pages by using atalasoft isisacquisition and isisdevice.

    I insert ImageAcquired event of IsisAcquisition that is very simple code,but proecess memory is incresing

    So Out of memory error is occured.

    This is very big problem for me.

    How can i solve this problem.

    Please help me.

    The code is below:

    ...

    Private WithEvents m_cIsisAcquition As New Atalasoft.Isis.IsisAcquisition

    Private m_cIsisDevice As Atalasoft.Isis.IsisDevice

    ...

    Private Sub m_cIsisAcquition_ImageAcquired(ByVal sender As Object, ByVal e As Atalasoft.Isis.IsisImageAcquiredEventArgs) Handles m_cIsisAcquition.ImageAcquired

            Try
                Dim fileName As String
                m_intNumber += 1
                fileName = m_prefixFolder + m_intNumber.ToString + ".tif"
                e.Image.Save(fileName, Atalasoft.Imaging.Codec.ImageType.Bmp, Nothing)
            Catch ex As Exception
                MsgBox(ex.Message)

            Finally
                e.Image.Dispose()

                GC.Collect()

            End Try
        End Sub

    ...

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click


            m_cIsisDevice = m_cIsisAcquition.Devices("Panasonic KV-S4085C")
            m_cIsisAcquition.ActiveDevice = m_cIsisDevice

            If m_cIsisDevice.State = Atalasoft.Isis.IsisState.Closed Then
                m_cIsisDevice.Open()
                '12/11
                'm_strDeviceName = sDeviceName
            End If


            Dim cThread As Threading.Thread

            While m_cIsisDevice.State = IsisState.Acquiring
                System.Threading.Thread.CurrentThread.Sleep(100)
            End While

            If m_cIsisDevice.Controller.ShowDeviceDialog(Me) = True Then

                cThread = New Threading.Thread(AddressOf startScanThread)

                m_cIsisDevice.Settings.ScanType = IsisScanType.FeederFrontOnly
                m_cIsisDevice.Settings.ScanAhead = True
                m_cIsisDevice.Settings.ScanAheadCount = 600
                m_cIsisDevice.Settings.MixedScanning = True

                cThread.Priority = ThreadPriority.Highest
                cThread.IsBackground = True
               
                cThread.Start()
            Else

            End If

        End Sub

    Private Sub startScanThread()
            m_cIsisAcquition.Acquire()
    End Sub

    ...

  •  01 Mar 2010, 3:25 PM 20272 in reply to 20265

    Re: Out Of Memory Error

    Thanks, you found a bug.  If you have a support contract you can request a hotfix by opening a support case for this issue.  Otherwise it will be fixed in the next update of 8.0.
  •  04 Mar 2010, 3:04 AM 20294 in reply to 20272

    Re: Out Of Memory Error

    Thank you for you reply.

    I downloaded latest atalasoft 8.0 and install,after that i run my application with atalasoft 8.0 dll

    But still memory is always incresing,it's same.

    Why?Atalasoft 8.0 is still problem?

  •  04 Mar 2010, 1:07 PM 20297 in reply to 20294

    Re: Out Of Memory Error

    Yes.  The bug was just fixed and has not been released yet.  If you have a support contract you can get a hotfix by opening a support case.  Otherwise you will have to wait for the next update to be released.
  •  05 Mar 2010, 12:06 AM 20298 in reply to 20297

    Re: Out Of Memory Error

    Thank you very much.

    I want to ask you one question.

    I developed my project with atalasoft 6.0,that is no small.

    If I upgrade atalasoft 8.0,there can be any problems.

    So i don't want to upgrade atalasoft 8.0 from atalasoft 6.0

    When i use atalasoft 6.0,can i solve this memory error by using hotfix.

    Thanks again.

    Best Regards. 

  •  05 Mar 2010, 7:09 AM 20299 in reply to 20298

    Re: Out Of Memory Error

    You would need to open a support case and make a request to have this issue fixed in 6.0.
View as RSS news feed in XML