Watch, Follow, &
Connect with Us

Welcome, Guest
Guest Settings
Help

Thread: TOpenDialog crash on win 10 x64.



Permlink Replies: 5 - Last Post: Jun 29, 2017 5:49 AM Last Post By: Alain Bourgeois Threads: [ Previous | Next ]
Alain Bourgeois

Posts: 20
Registered: 3/15/00
TOpenDialog crash on win 10 x64.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 28, 2017 5:09 AM
Hi,

Using c++ builder XE10 seattle.
I have an app using TOpenDialog, VCL.

Works fine in winxp->Win7. But win10x64 the app crashes when calling OpenDialog1->Execute() method.

I tried TFileOpenDialog instead, same issue.
My app is used on lots of windows, from windows xp to 10, 32 and 64 bits.

Is there any file-open-box dialog component usable for an end-user having windows 10 x64?
Or is it possible to get a sample to call the OS file open box?

Regards.

Antonio Estevez

Posts: 546
Registered: 4/12/00
Re: TOpenDialog crash on win 10 x64.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 28, 2017 7:35 AM   in response to: Alain Bourgeois in response to: Alain Bourgeois
El 28/06/2017 a las 14:09, Alain Bourgeois escribió:
Hi,

Using c++ builder XE10 seattle.
I have an app using TOpenDialog, VCL.

Works fine in winxp->Win7. But win10x64 the app crashes when calling OpenDialog1->Execute() method.

I tried TFileOpenDialog instead, same issue.
My app is used on lots of windows, from windows xp to 10, 32 and 64 bits.

Is there any file-open-box dialog component usable for an end-user having windows 10 x64?
Or is it possible to get a sample to call the OS file open box?

Regards.

You probably have a shell extension installed which has detected that a
debugger is attached to the application and then it makes the
application to crash.

Do you have the same crash when runnig the application from outside the IDE?

Alain Bourgeois

Posts: 20
Registered: 3/15/00
Re: TOpenDialog crash on win 10 x64.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 28, 2017 7:41 AM   in response to: Antonio Estevez in response to: Antonio Estevez
YES: The crash has been detected by an end-user running the app on a win10x64 computer where c++ builder is NOT installed.
Remy Lebeau (Te...


Posts: 8,353
Registered: 12/23/01
Re: TOpenDialog crash on win 10 x64.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 28, 2017 1:35 PM   in response to: Antonio Estevez in response to: Antonio Estevez
Antonio Estevez wrote:

You probably have a shell extension installed which has detected that
a debugger is attached to the application and then it makes the
application to crash.

Or, you are using VCL styles, which are quite buggy and known to haave
issues with with the standard open dialog.

--
Remy Lebeau (TeamB)
Remy Lebeau (Te...


Posts: 8,353
Registered: 12/23/01
Re: TOpenDialog crash on win 10 x64.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 28, 2017 1:37 PM   in response to: Alain Bourgeois in response to: Alain Bourgeois
Alain Bourgeois wrote:
Is there any file-open-box dialog component usable for an end-user having windows 10 x64?

Do you have the same problem if you use the Win32 IFileDialog API directly?

https://msdn.microsoft.com/en-us/library/windows/desktop/bb776913.aspx

--
Remy Lebeau (TeamB)
Alain Bourgeois

Posts: 20
Registered: 3/15/00
Re: TOpenDialog crash on win 10 x64.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 29, 2017 4:14 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
code for function CDialogEventHandler_CreateInstance unaccessible from microsoft website (removed?)

Edited by: Alain Bourgeois on Jun 29, 2017 5:49 AM
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02