Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/VCL/Dialog Controls/TOpenPictureDialog    [ Add a report in this area ]  
Report #:  84260   Status: Closed
Access Violation TOpenPictureDialog when located on a network
Project:  Delphi Build #:  14.0.3593.25826
Version:    14.0 Submitted By:   Eduardo Fonseca
Report Type:  Crash / Data loss / Total failure Date Reported:  4/30/2010 1:09:49 PM
Severity:    Infrequently encountered problem Last Updated: 8/20/2012 10:39:42 PM
Platform:    All platforms Internal Tracking #:  
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
In TOpenPictureDialog access violation error occurs when located on a network. Example:


In the image preview occurs error of access violation
Steps to Reproduce:
- Create FORM
- Insert GOpenPictureDialog
- execute OpenPictureDialog.Execute
- file name  =  \\Server\Folder\IMAGE.JPG

ERRO Access Violation

-- Attachments Image, PrintScreen, Examples
Copy the image to folder location

Tomohiro Takahashi at 5/1/2010 6:53:33 AM -
> In the image preview occurs error of access violation
Could you provide more information about the AV?
And, does the AV occur only when a application is launched from IDE(w/ debug session)?

Dick Boogaers at 5/10/2010 2:34:58 AM -
You probably have a rights issue on the network server.
Try the same thing, logged in as an administrator on the server (not necessarily on your workstation).
Also check if the network is in the IntraNet trusted zone. You can force that with settings in IE.

Eduardo Fonseca at 5/1/2010 10:53:45 AM -
Execute Step

Tomohiro Takahashi at 5/1/2010 4:56:24 PM -
What OS do you use, XP or Vista, 7?

> - file name  =  \\Server\Folder\IMAGE.JPG
How do you select the .jpg file? Do you enter the PATH in filename field of dialogbox directly?
Could you please attach some screenshots to confirm your issue?

Eduardo Fonseca at 5/4/2010 6:16:12 AM -
Sent picture where is not displayed in figure in openpicturedialog and also the error of access violation, recalling that the figure is on the local computer, this error does not occur.

This is for all Windows
Enviado imagem onde não é exibido a figura no openpicturedialog e também o erro de Access Violation, lembrando que se a figura estiver no computador local, este erro não ocorre.

Isto é para todos os Windows

Tomohiro Takahashi at 5/6/2010 10:31:11 PM -
I tried to reproduce your issue on my PC(Windows 7).
But, I can not reproduce the AV. I can see preview image in the dialog correctly when selecting '\\xx.xx.xx.xx\foldername\mochila wilson preta.jpg'.

Eduardo Fonseca at 5/7/2010 6:12:02 AM -
Attachments Image, PrintScreen, Examples

Tomohiro Takahashi at 5/9/2010 11:15:27 PM -
Does your issue occur only with shared \\server\folder\xxxx.jpg?
On my XP, your issue occurs both local HDD and server's folder.
In addition, your issue occurs on both .jpg and .png formats. So, could you try to add 'jpeg' unit and 'pngimage' unit in uses section explicitly as below.
uses ..., ExtDlgs, jpeg, pngimage;

Then, TImage component can not load 'mochila wilson preta.jpg' via Picture porperty. Please try to assign the .jpg file with Object Inspector.
Furthermore, on my Windows 2000(SP4), I can not see 'mochila wilson preta.jpg' with 'Imaging','Paint' utility and IE...
How did you make 'mochila wilson preta.jpg'? Does it have any special format?

Tomohiro Takahashi at 5/10/2010 10:20:20 PM -
On Windows 2000, only QuickTime PictureViewer can show your .jpg file.
What format do you use for the .jpg file?

Tomohiro Takahashi at 5/8/2010 2:43:10 AM -
I tried to reproduce the issue on WinXP, using attached project...

Tomohiro Takahashi at 5/5/2010 9:49:38 PM -
> img2.PNG
Where do you see the error, for exmaple MessagWindow of IDE, Error dialog box etc...?
Could you please attach entire screenshot of your Desktop to confirm how you get the error?

Server Response from: ETNACODE01