How to avoid [Can not create Dialog Box]

Post Reply
kkwan
Posts: 10
Joined: Tue Apr 17, 2018 11:39 am

How to avoid [Can not create Dialog Box]

Post by kkwan »

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?
hmpaquito
Posts: 1200
Joined: Thu Oct 30, 2008 2:37 pm

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

Post by hmpaquito »

+1
User avatar
richard-service
Posts: 583
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Contact:

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

Post by richard-service »

+1
Regards,

Richard

Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

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

Post by cnavarro »

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
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
AntoninoP
Posts: 347
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy
Contact:

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

Post by AntoninoP »

We had a similar problem and the reason was some leak on resource (GDI) we solved them and the problem gone.
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

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

Post by James Bott »

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
Post Reply