FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error FiveWin/3 Cannot create Dialog Box:
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Error FiveWin/3 Cannot create Dialog Box:
Posted: Sun Mar 24, 2019 07:11 PM

Time from start: 0 hours 0 mins 1 secs
Error occurred at: 24/03/2019, 21:23:20
Error description: Error BASE/1005 Message not found: TMENUITEM:_BBLOCK
Args:
[ 1] = O TMENUITEM


This data exist in class TMenuITem
Please put your code of
Code (fw): Select all Collapse
Called from: .\Master.prg => DEFINE_RIBBON( 1554 )

Do you use any external class to make menus or use menus in this class?
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: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Error FiveWin/3 Cannot create Dialog Box:
Posted: Sun Mar 24, 2019 09:06 PM
Hi Mr. Navarro,

I don't use any external class. This error occurs only with Antonio's new libs that is send to me. (just fiveh32.lib and fivehc32.lib)

line 1554 is
Code (fw): Select all Collapse
聽 聽 MENU oToplu_UDF_Hazirlama POPUP 2010
聽 聽 聽 聽 MENUITEM "List1" ACTION UDF_Rapor()
聽 聽 聽 聽 MENUITEM "List2" ACTION Toplu_UDF()
聽 聽 聽 聽 MENUITEM "List3" ACTION Toplu_PDF()
聽 聽 聽 聽 MENUITEM "List4" ACTION Toplu_UDFT()
聽 聽 聽 聽 MENUITEM "List5" ACTION Toplu_UDFT1()
聽 聽 聽 聽 MENUITEM "List6" ACTION Toplu_UDFT2()
聽 聽 聽 聽 MENUITEM "List7" ACTION Toplu_UDFT3()
聽 聽 ENDMENU

聽 聽 MENU oOzel_Raporlar POPUP 2010
聽 聽 聽 聽 MENUITEM "Report1" ACTION GenelRapor_Ozel1()
聽 聽 聽 聽 MENUITEM "Report2" ACTION GenelRapor_Ozel2()
聽 聽 聽 聽 聽 聽 MENU 
聽 聽 聽 聽 聽 聽 聽 聽 MENUITEM "Excel" ACTION GenelRapor_Ozel2(2)
聽 聽 聽 聽 聽 聽 聽 聽 MENUITEM "Printer" ACTION GenelRapor_Ozel2(1)
聽 聽 聽 聽 聽 聽 ENDMENU聽聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 // <<<<---- line 1554
聽 聽 聽 聽 MENUITEM "Report3" ACTION GenelRapor_Ozel3()
聽 聽 聽 聽 MENUITEM "Report4" ACTION GenelRapor_Ozel4()
聽 聽 聽 聽 MENUITEM "Report5" ACTION oApp:RUN("MERAPOR()")
聽 聽 聽 聽 MENUITEM "Report6" ACTION oApp:RUN("RAPOR_258()")
聽 聽 聽 聽 SEPARATOR
聽 聽 聽 聽 MENUITEM "Report7" ACTION GenelRapor_Ozel11()
聽 聽 聽 聽 MENUITEM "Report8" ACTION GenelRapor_Ozel12()
聽 聽 聽 聽 MENUITEM "Report9" ACTION GenelRapor_Ozel13()
聽 聽 ENDMENU
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Error FiveWin/3 Cannot create Dialog Box:
Posted: Sun Mar 24, 2019 09:28 PM
Hakan
Please try the following:
Define your menus in two functions separately
Code (fw): Select all Collapse
Static Function MnuHazirlama()
// Or, if you use this menus in others modules ( PRGs )
// Function MnuHazirlama()

聽 聽//Not use this if oToplu_UDF_Hazirlama variable is defined static
聽 聽//local oToplu_UDF_Hazirlama

聽 聽 MENU oToplu_UDF_Hazirlama POPUP 2010
聽 聽 聽 聽 MENUITEM "List1" ACTION UDF_Rapor()
聽 聽 聽 聽 MENUITEM "List2" ACTION Toplu_UDF()
聽 聽 聽 聽 MENUITEM "List3" ACTION Toplu_PDF()
聽 聽 聽 聽 MENUITEM "List4" ACTION Toplu_UDFT()
聽 聽 聽 聽 MENUITEM "List5" ACTION Toplu_UDFT1()
聽 聽 聽 聽 MENUITEM "List6" ACTION Toplu_UDFT2()
聽 聽 聽 聽 MENUITEM "List7" ACTION Toplu_UDFT3()
聽 聽 ENDMENU

Return oToplu_UDF_Hazirlama

Static Function MnuRapolar()
// Or, if you use this menus in others modules ( PRGs )
// Function MnuRapolar()

聽 聽//Not use this if oOzel_Raporlar variable is defined static
聽 聽//local oOzel_Raporlar

聽 聽 MENU oOzel_Raporlar POPUP 2010
聽 聽 聽 聽 MENUITEM "Report1" ACTION GenelRapor_Ozel1()
聽 聽 聽 聽 MENUITEM "Report2" ACTION GenelRapor_Ozel2()
聽 聽 聽 聽 聽 聽 MENU 
聽 聽 聽 聽 聽 聽 聽 聽 MENUITEM "Excel" ACTION GenelRapor_Ozel2(2)
聽 聽 聽 聽 聽 聽 聽 聽 MENUITEM "Printer" ACTION GenelRapor_Ozel2(1)
聽 聽 聽 聽 聽 聽 ENDMENU 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 // <<<<---- line 1554
聽 聽 聽 聽 MENUITEM "Report3" ACTION GenelRapor_Ozel3()
聽 聽 聽 聽 MENUITEM "Report4" ACTION GenelRapor_Ozel4()
聽 聽 聽 聽 MENUITEM "Report5" ACTION oApp:RUN("MERAPOR()")
聽 聽 聽 聽 MENUITEM "Report6" ACTION oApp:RUN("RAPOR_258()")
聽 聽 聽 聽 SEPARATOR
聽 聽 聽 聽 MENUITEM "Report7" ACTION GenelRapor_Ozel11()
聽 聽 聽 聽 MENUITEM "Report8" ACTION GenelRapor_Ozel12()
聽 聽 聽 聽 MENUITEM "Report9" ACTION GenelRapor_Ozel13()
聽 聽 ENDMENU

Return oOzel_Raporlar


And, when you need to use these menus, call the corresponding function

Code (fw): Select all Collapse
... 聽MENU MnuHazirlama() ...

// or

... 聽MENU MnuRapolar() ...

Please, tell me if run Ok, thanks
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: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Error FiveWin/3 Cannot create Dialog Box:
Posted: Sun Mar 24, 2019 10:34 PM
Hakan, I tested this code with all C Compilers ( Borland, VS 2015, VS 2017, Mingw 8.1 ) and run OK for me
Continuous reviewing why you give an error

Code (fw): Select all Collapse
#include "Fivewin.ch"

Static oMenu1
Static oMenu2

// ----------------------------------------------------------------------------//

Function Main()

聽 聽local oMnu

聽 聽 MENU oMenu1 POPUP 2010
聽 聽 聽 聽 MENUITEM "List1" ACTION Msginfo( "00" )
聽 聽 聽 聽 MENUITEM "List2" ACTION Msginfo( "01" )
聽 聽 聽 聽 MENUITEM "List3" ACTION Msginfo( "02" )
聽 聽 聽 聽 MENUITEM "List4" ACTION Msginfo( "03" )
聽 聽 聽 聽 MENUITEM "List5" ACTION Msginfo( "04" )
聽 聽 聽 聽 MENUITEM "List6" ACTION Msginfo( "05" )
聽 聽 聽 聽 MENUITEM "List7" ACTION Msginfo( "06" )
聽 聽 ENDMENU

聽 聽 MENU oMenu2 POPUP 2010
聽 聽 聽 聽 MENUITEM "Report1" ACTION Msginfo( "1" )
聽 聽 聽 聽 MENUITEM "Report2" ACTION Msginfo( "2" )
聽 聽 聽 聽 聽 聽 MENU 
聽 聽 聽 聽 聽 聽 聽 聽 MENUITEM "Excel" ACTION Msginfo( "21" )
聽 聽 聽 聽 聽 聽 聽 聽 MENUITEM "Printer" ACTION Msginfo( "22" )
聽 聽 聽 聽 聽 聽 ENDMENU 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 // <<<<---- line 1554
聽 聽 聽 聽 MENUITEM "Report3" ACTION Msginfo( "31" )
聽 聽 聽 聽 MENUITEM "Report4" ACTION Msginfo( "41" )
聽 聽 聽 聽 MENUITEM "Report5" ACTION Msginfo( "51" )
聽 聽 聽 聽 MENUITEM "Report6" ACTION Msginfo( "61" )
聽 聽 聽 聽 SEPARATOR
聽 聽 聽 聽 MENUITEM "Report7" ACTION Msginfo( "11" )
聽 聽 聽 聽 MENUITEM "Report8" ACTION Msginfo( "12" )
聽 聽 聽 聽 MENUITEM "Report9" ACTION Msginfo( "13" )
聽 聽 ENDMENU

聽 聽 XBrowse( oMenu2:aMenuItems )

Return NIL

// ----------------------------------------------------------------------------//
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: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Error FiveWin/3 Cannot create Dialog Box:
Posted: Sun Mar 24, 2019 10:49 PM
cnavarro wrote:

Time from start: 0 hours 0 mins 1 secs
Error occurred at: 24/03/2019, 21:23:20
Error description: Error BASE/1005 Message not found: TMENUITEM:_BBLOCK
Args:
[ 1] = O TMENUITEM


This data exist in class TMenuITem


Hakan,
The TMenuItem class in the repository does not contain the DATA bBlock
Excuse me, it's my mistake
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: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Error FiveWin/3 Cannot create Dialog Box:
Posted: Tue Mar 26, 2019 07:31 PM
Hi Mr. Navarro,

I have not installed the 19.01. After It is installed, the same error is occured.
I have remarked the my wrong code as below and now it is ok.

Thank you very much.

Code (fw): Select all Collapse
 聽 聽 聽 MENUITEM "Report1" ACTION Msginfo( "1" )
聽 聽 聽 聽 MENUITEM "Report2" //ACTION Msginfo( "2" ) 聽<<<--- This is my wrong code. I remarked here.
聽 聽 聽 聽 聽 聽 MENU 
聽 聽 聽 聽 聽 聽 聽 聽 MENUITEM "Excel" ACTION Msginfo( "21" )
聽 聽 聽 聽 聽 聽 聽 聽 MENUITEM "Printer" ACTION Msginfo( "22" )
聽 聽 聽 聽 聽 聽 ENDMENU 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 // <<<<---- line 1554
聽 聽 聽 聽 MENUITEM "Report3" ACTION Msginfo( "31" )
聽 聽 聽 聽 MENUITEM "Report4" ACTION Msginfo( "41" )
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Error FiveWin/3 Cannot create Dialog Box:
Posted: Tue Mar 26, 2019 07:56 PM

Yes, it is correct, but anyway, check if your TMENUITEM class has the DATA bBlock

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: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Error FiveWin/3 Cannot create Dialog Box:
Posted: Tue Mar 26, 2019 08:24 PM
cnavarro wrote:Yes, it is correct, but anyway, check if your TMENUITEM class has the DATA bBlock


There is not any DATA bBlock in C:\fwh\source\classes\menuitem.prg.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Error FiveWin/3 Cannot create Dialog Box:
Posted: Tue Mar 26, 2019 08:26 PM

Ok, I added this data in the repository class, for the new version

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: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Error FiveWin/3 Cannot create Dialog Box:
Posted: Tue Mar 26, 2019 08:29 PM
cnavarro wrote:Ok, I added this data in the repository class, for the new version


Thanks.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Error FiveWin/3 Cannot create Dialog Box:
Posted: Wed Jun 12, 2019 10:00 AM
Hi Antonio,

After add the lasterror, I got this error

Code (fw): Select all Collapse
 聽 Compiler version: Harbour 3.2.0dev (r1801051438)
聽 聽FiveWin 聽version: FWH 19.03
聽 聽C compiler version: Microsoft Visual C++ 19.12.25835 (32-bit)
聽 聽Windows version: 6.2, Build 9200 

聽 聽Time from start: 0 hours 1 mins 22 secs 
聽 聽Error occurred at: 12/06/2019, 08:33:19
聽 聽Error description: Error FiveWin/3 聽Cannot create Dialog Box: 
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 Title: , System Error: 陌艧lem ba艧ar谋yla tamamland谋.


Stack Calls
===========
聽 聽Called from: .\source\classes\DIALOG.PRG => CREATEDLGERROR( 717 )
聽 聽Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 321 )
聽 聽Called from: .\TApplication.prg => TAPPLICATION:LOGIN( 1497 )
聽 聽Called from: .\TApplication.prg => TAPPLICATION:ONINIT( 1175 )
聽 聽Called from: .\TApplication.prg => (b)TAPPLICATION_ACTIVATE( 1147 )
聽 聽Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 1064 )
聽 聽Called from: .\TApplication.prg => TAPPLICATION:ACTIVATE( 1147 )
聽 聽Called from: .\Master.prg => MAIN( 319 )

System
======
聽 聽CPU type: Intel(R) Core(TM) i3-4130T CPU @ 2.90GHz 2893 Mhz
聽 聽Hardware memory: 4009 megs

聽 聽Free System resources: 90 %
聽 聽 聽 聽 GDI 聽 聽resources: 90 %
聽 聽 聽 聽 User 聽 resources: 90 %


"陌艧lem ba艧ar谋yla tamamland谋." --> Operation completed successfully.

Thanks,
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Error FiveWin/3 Cannot create Dialog Box:
Posted: Wed Jun 12, 2019 10:22 AM

Hakan,

How to reproduce it ?

many thanks for your feedback

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Error FiveWin/3 Cannot create Dialog Box:
Posted: Wed Jun 12, 2019 01:01 PM
Antonio Linares wrote:Hakan,

How to reproduce it ?

many thanks for your feedback


It comes randomly. The error I have send that login user screen of my application.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06

Continue the discussion