Page 1 of 1

Windows XP -TiffPage - GetImage() - IndexOutOfRangeException

Posted: Thu Apr 29, 2010 12:06 am
by dvonfeldt
When calling the TiffPage.GetImage() method I am getting an IndexOutOfRangeException. When I run the exact same code on my development box, which is running Windows 7 I do not get this error.

Code: Select all

            For intPageNumber As Integer = 0 To m_oDentalXRayInMemoryTiffImage.Pages.Count - 1

                Try
                    avImage.Images.Add(m_oDentalXRayInMemoryTiffImage.Pages(intPageNumber).GetImage)
                    tvImages.Images.Add(m_oDentalXRayInMemoryTiffImage.Pages(intPageNumber).GetImage)
                Catch ex As Exception
                    MessageBox.Show("GetImage() --> " & ex.ToString)
                End Try


                Dim strThumbnailCaption As String = GetThumbnailCaption(intPageNumber)

                tvImages.Images(intPageNumber).Tag = strThumbnailCaption
                avImage.Images(intPageNumber).Tag = strThumbnailCaption

            Next

Re: Windows XP -TiffPage - GetImage() - IndexOutOfRangeException

Posted: Thu Apr 29, 2010 7:24 pm
by Alex
Hello,

Please try to use the latest version (4.0.5.1) of VintaSoftImaging.NET SDK and let me know results.

Best regards, Alexander