Hi Loic,
I've found an issue with the 5.1.09 build of the gdpicture control that was not in previous versions.
When the ImageForceTemporaryMode property is set to TRUE and you load the same image twice (consecutively), you get an untrapped error in the gdpicture control.
In VFP 9
add the viewer control to a form.
in the Init() place the following code:
thisform.olecontrol1.SetLicenseNumber("NNNNN")
thisform.olecontrol1.ImageforceTemporaryMode= .T.
Add a button to the form and place the following code in the Click():
lcFile = GETFILE()
IF !EMPTY(lcFile)
THISFORM.OleControl1.DisplayFromFile(lcFile)
ENDIF
launch the form and click the button. works fine.
click the button again and select the *same* file, you get an untrapped error.
of course, my actual code does not look like this and for reasons too lengthy to explain i have to use ImageForceTemporaryMode and i have to redisplay the same file (even though it's already loaded)
Thanks for looking into this!!
