How to avoid [Can not create Dialog Box]

How to avoid [Can not create Dialog Box]

Postby kkwan » Thu Jun 21, 2018 8:07 am

If there are Get control, button, RichEdit in common dialog box, and then close and open dialog box after saving continuously (about 200 times) [Error dESCription: Can not create Dialog Box]
Where is the cause?
kkwan
 
Posts: 10
Joined: Tue Apr 17, 2018 11:39 am

Re: How to avoid [Can not create Dialog Box]

Postby hmpaquito » Thu Jun 21, 2018 9:20 am

+1
hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: How to avoid [Can not create Dialog Box]

Postby richard-service » Thu Jun 21, 2018 10:24 am

+1
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: How to avoid [Can not create Dialog Box]

Postby cnavarro » Thu Jun 21, 2018 12:21 pm

kkwan wrote:If there are Get control, button, RichEdit in common dialog box, and then close and open dialog box after saving continuously (about 200 times) [Error dESCription: Can not create Dialog Box]
Where is the cause?


What version Fwh use?
Please put any little sample for test it
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: How to avoid [Can not create Dialog Box]

Postby AntoninoP » Thu Jun 21, 2018 2:49 pm

We had a similar problem and the reason was some leak on resource (GDI) we solved them and the problem gone.
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy

Re: How to avoid [Can not create Dialog Box]

Postby James Bott » Thu Jun 21, 2018 9:15 pm

As others have mentioned it is usually due to a resource leak. It also can occur when a class is not found and this gets reported as "Cannot create dialog box" for some reason.

If it is a resource leak, then it is also more likely to occur on computers with less RAM, since they will run out of resource memory sooner.

Regards
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 113 guests