Windows XP -TiffPage - GetImage() - IndexOutOfRangeException

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Moderator: Alex

Post Reply
dvonfeldt
Posts: 3
Joined: Wed Apr 28, 2010 11:44 pm

Windows XP -TiffPage - GetImage() - IndexOutOfRangeException

Post 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
Alex
Site Admin
Posts: 2305
Joined: Thu Jul 10, 2008 2:21 pm

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

Post 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
Post Reply