FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to avoid [Can not create Dialog Box]
Posts: 10
Joined: Tue Apr 17, 2018 11:39 AM
How to avoid [Can not create Dialog Box]
Posted: Thu Jun 21, 2018 08: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?

Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: How to avoid [Can not create Dialog Box]
Posted: Thu Jun 21, 2018 09:20 AM

+1

Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: How to avoid [Can not create Dialog Box]
Posted: Thu Jun 21, 2018 10:24 AM

+1

Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: How to avoid [Can not create Dialog Box]
Posted: 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
Posts: 375
Joined: Tue Feb 10, 2015 09:48 AM
Re: How to avoid [Can not create Dialog Box]
Posted: Thu Jun 21, 2018 02:49 PM

We had a similar problem and the reason was some leak on resource (GDI) we solved them and the problem gone.

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: How to avoid [Can not create Dialog Box]
Posted: Thu Jun 21, 2018 09: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

Continue the discussion