When i use the .DisplayFromFile method the source file is locked. Other application can access it read only.
And more.. if i close the application without close the picture first (using .closepicture or .close2picture method) the file remain locked until the system reboot (this is a critical issue).
I try this simple workaround:
- Code: Select all
gdViewer1.DisplayFromFile (sTmpFile)
gdViewer1.Close2Picture
In this way the file don't lock and the picture still display on gdViewer, BUT i can do any action on it like setting the zoom factor (es. .ZoomMode = ZoomToViewer produce no effect).
There is a way to load the image in the viewer, release the file, and menage it ?
