GDViewer and SplitContainer - Not enough memory

Discussions about document viewing.
Post Reply
EFernkaes
Posts: 19
Joined: Fri Jul 31, 2015 5:27 pm

GDViewer and SplitContainer - Not enough memory

Post by EFernkaes » Fri Jul 31, 2015 5:53 pm

I guess I found a bug when using GDViewer in a SplitContainer:

Place a SplitContainer on a Form (e.g. SplitContainer1).
Fill left side of the SplitContainer with a GDViewer Control (e.g. GdViewerL).

Now place 2 Buttons on the form (Button1 & Button2).
In the first button fill GDView Controls with an Image and release the Image afterwards:

Code: Select all

  Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        Dim aktImgL As Integer
        aktImgL = m_GdPictureImaging.CreateGdPictureImageFromFile("E:\12 Weird Tattoos of 2011 11.jpg", False)
        GdViewerL.DisplayFromGdPictureImage(aktImgL)
        m_GdPictureImaging.ReleaseGdPictureImage(aktImgL)
    End Sub
In the second button place a collapse command for the SplitContainers right Panel:

Code: Select all

    Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
        SplitContainer1.Panel2Collapsed = Not (SplitContainer1.Panel2Collapsed)
    End Sub
First Load the image in the GDViewer with button1 and then press button2
Now you will get a "Not enough memory to render the document." error everytime you click on button2.
Strange isn't it?

Visual Studio 10
GDPicture 11
Tested on multiple Windows PC's

Greetz
Rainman

User avatar
Loïc
Site Admin
Posts: 5547
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: GDViewer and SplitContainer - Not enough memory

Post by Loïc » Sat Aug 01, 2015 12:32 pm

Hello Rainman,

Is this problem persists on our latest 11.2.12 release?

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests