OpenPcitureDialog

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

aby
Posts: 81
Joined: 21 May 2007, 13:02
Location: Turkey

OpenPcitureDialog

Post by aby » 04 Apr 2012, 17:35

Hi,

My program randomly works with Windows7 operating system on several machines.

The issue is comming from TOpenPictureDialog.

If TOpenPictureDialog's diplays the image at the right it works, but if does not show doesn't work.

Do you know any remedies.

Thanks

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: OpenPcitureDialog

Post by support » 05 Apr 2012, 11:27

Hello Aby.
Such problem can be a result of user insufficient rights on some PC's or memory usage limitation. Please check users permissions and restrictions and try to run the application with administrator rights.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Roland
Posts: 11
Joined: 25 Apr 2008, 12:52

Re: OpenPcitureDialog

Post by Roland » 30 Nov 2012, 17:33

Hello,

We're having a similar issue i think.

On a specific Windows 7 PC open a DWG just doesn't work. While loading/opening the tools get 'stuck'. The apllication uses max CPU and never finishes loading. This is with V8.1 of the Import VCL component compiled under Delphi XE2.

Just to test we sent the client the same application but then using 8.0 version and that works.

Do you have any idea what the diffierence between 8.0 and 8.1 can be that gives this problem?

Regards,
Roland

aby
Posts: 81
Joined: 21 May 2007, 13:02
Location: Turkey

Re: OpenPcitureDialog

Post by aby » 01 Dec 2012, 01:58

Hi,

I couldn't find any remedy. It is a very weird situation.

My workaround to this issue was to create a Virtual Xp machine on the client's computer.

Then there is no problem.

Please Alex find a solution. I'm thinking that you had encountered the same problem like us. I think every body who is using this library soon or less would face the same problem.

Sabetay

Roland
Posts: 11
Joined: 25 Apr 2008, 12:52

Re: OpenPcitureDialog

Post by Roland » 07 Dec 2012, 12:15

We've asked them to run with administrator rigths and it still isn't working.

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: OpenPcitureDialog

Post by support » 07 Dec 2012, 18:56

Hello Sabetay, Roland.
The problem can depend on storing file name and full path by TOpenPictureDialog instance. The application can hang if the stored path not accessible at the moment. To avoid the situation you can set some (local) default path for TOpenPictureDialog.FileName property. Please try something like:

Code: Select all

procedure TForm1.MIOpenClick(Sender: TObject);
begin
  OpenDialog1.FileName := 'd:\1';
  try
    if OpenDialog1.Execute then
... 
Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Roland
Posts: 11
Joined: 25 Apr 2008, 12:52

Re: OpenPcitureDialog

Post by Roland » 10 Dec 2012, 13:40

Hello Alexander,

I'm not using the TOpenPictureDialog. I'm directly calling the TPicture.LoadFromFile and it's hanging there.

Roland.

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: OpenPcitureDialog

Post by support » 10 Dec 2012, 13:51

Hello Roland.
Please check if the file that you try to import is accessible. Try to open the same file using a dialog window.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Roland
Posts: 11
Joined: 25 Apr 2008, 12:52

Re: OpenPcitureDialog

Post by Roland » 10 Dec 2012, 15:45

The file is accessable.

As i said earlier if we make a build using CADimport VCL 8.0 it works fine. When we build using V8.1 it doesn't work. It hangs.

So far on most computers it works fine. We just have two clients with Windows 7 now where we have this issue, they are unable to open any CAD files.

Regards,
Roland.

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: OpenPcitureDialog

Post by support » 10 Dec 2012, 19:35

Hello Roland.
XE2 support is the most differense between versions 8.0 and 8.1. As you mentioned earlier:
This is with V8.1 of the Import VCL component compiled under Delphi XE2.
Could you please compile your project under previous Delphi version that was used with 8.0? Or you can try the Viewer.exe from the library on the problem PC, this option also will check using dialog. Does the problem occur with both 32- and 64-bit project versions?

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Roland
Posts: 11
Joined: 25 Apr 2008, 12:52

Re: OpenPcitureDialog

Post by Roland » 11 Dec 2012, 12:21

Yes under both 32 and 64 bit, both hang.

I received a beta version of V8.0 for XE2 so i compiled the 8.0 (XE2 beta) and 8.1 under XE2.

I will try sending the viewer demo to the client, see if that works.

Roland
Posts: 11
Joined: 25 Apr 2008, 12:52

Re: OpenPcitureDialog

Post by Roland » 20 Dec 2012, 14:21

Just got a reply from the client and the Viewer.exe gives the same problems.

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: OpenPcitureDialog

Post by support » 20 Dec 2012, 15:04

Hello Roland.
The issue is unclear and not reproduced on our facilities, we need more details. Please specify if the client that have the problem opens files via a network path or from logical drive of the PC. Which Windows 7 editions installed on that PC? Could you please send to support@cadsofttools.com any problem DWG file for testing?

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: OpenPcitureDialog

Post by support » 20 Dec 2012, 15:08

Hello Sabetay.
Have any result with TOpenPictureDialog.FileName setting? If not then please provide us any information correspondingly to my previous post, if possible.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Roland
Posts: 11
Joined: 25 Apr 2008, 12:52

Re: OpenPcitureDialog

Post by Roland » 21 Dec 2012, 12:51

Hello Alexander,

If i could reproduce this problem easily it would be nice :). But so far it's only on this clients PC (laptop actually).

I have looked for myself on this PC with remote desktop and i can't find anything out of the ordinary. The DWG files i can open on my own PC with no problems so it's not an issue with the files. The files are also on a local drive. Opening with older version 8.0 works, opening with 8.1 hangs, with the same (edit: ANY file) file.

This is a strange issue. If you have some version of the code which gives some debug info / messges or whatever might be useful. I was thinking of adding some debug messages to your code but that would be quite a big job. So if you have something like that it may be useful.

I also have a new issue for you! :).

http://sendit.dgmr.nl/absolutefs/?f=4048&fid=74bb38e5

This is a download link to a drawing which display differently on different PC's. Both screenshots are taken on Win 7 PC's. The 'bad' one is from my own PC and the 'good' is from a colleges PC.

Post Reply