Error en oCol:nBtnBmp

Error en oCol:nBtnBmp

Postby acuellar » Fri Apr 06, 2018 8:17 pm

Estimado

Con la versión FWH1802

Se sale del programa a causa del oCol:nBtnBmp:=1 la comento y funciona pero no me muestra la imagen

Code: Select all  Expand view  RUN

oCol:=oBrw:AddCol()
   oCol:cEditPicture   := "@!"
   oCol:bStrData  := { || DETA->PRODUC}
   oCol:cHeader   := "Producto"
   oCol:nWidth:=78
   oCol:AddResource('B-F2')
   oCol:nBtnBmp := 1
   oCol:nEditType := 5
   oCol:bEditBlock    := { |nRow,nCol,oCol| BuscaProd(nRow,nCol,"ITEM")}
   oCol:bOnPostEdit := {|o, v, n| DETA->PRODUC:=v }

 

Called from GDIP_DELETEIMAGE(0)
Called from PALBMPFREE(1158) in .\source\classes\BITMAP.PRG
Called from TBTNBMP:FREEBITMAPS(1035) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:DESTROY(956) in .\source\classes\BTNBMP.PRG
Called from (b)TBTNBMP(184) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:END(0) in .\source\classes\BTNBMP.PRG
Called from TXBRWCOLUMN:END(11226) in .\source\classes\XBROWSE.PRG
Called from TXBROWSE:DESTROY(896) in .\source\classes\XBROWSE.PRG
Called from TWINDOW:HANDLEEVENT(0)
Called from TCONTROL:HANDLEEVENT(1731) in .\source\classes\CONTROL.PRG
Called from TXBROWSE:HANDLEEVENT(10504) in .\source\classes\XBROWSE.PRG
Called from _FWH(3368) in .\source\classes\WINDOW.PRG

Gracias por la ayuda.
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1645
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Error en oCol:nBtnBmp

Postby nageswaragunupudi » Sat Apr 07, 2018 3:24 pm

There is no oCol:nBmpNo.
You need to use oCol:bBmpData := <codeblock> returning a number

For example, in the above case, you can use
oCol:bBmpData := { || 1 }
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Error en oCol:nBtnBmp

Postby acuellar » Sat Apr 07, 2018 4:50 pm

Mr. Rao.
Thank you but put it in the data

https://ibb.co/g5b0XH

I need this
https://ibb.co/bWU16c
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1645
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Error en oCol:nBtnBmp

Postby nageswaragunupudi » Sun Apr 08, 2018 12:17 am

Mr Adhemar

I am sorry. My posting was wrong.
Your code is correct.
In your case, it appears that the resource "B_F2" is not a valid image.
1) Can you first try with another image?
2) Did this work in a previous version of FWH?
3) Can you also post the full error.log from beginning till "Called from GDIP_DELETEIMAGE(0)"
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Error en oCol:nBtnBmp

Postby acuellar » Mon Apr 09, 2018 11:57 am

1) Can you first try with another image? Yes, I put another
2) Did this work in a previous version of FWH? Yes, FWH1502
3) Can you also post the full error.log from beginning till "Called from GDIP_DELETEIMAGE(0)"
Code: Select all  Expand view  RUN

--------------------Configuración: FOOD - Release--------------------
Harbour 3.2.0dev (r1801051438)
Copyright (c) 1999-2016, http://harbour-project.org/
Embarcadero C++ 7.30 for Win32 Copyright (c) 1993-2017 Embarcadero Technologies, Inc.
FOOD11.c:
Turbo Incremental Link 6.80 Copyright (c) 1997-2017 Embarcadero Technologies, Inc.
Error irrecuperable 6005: Exception error:
    Exception Code:C0000005 ACCESS_VIOLATION
    Exception Address:777E029D
    EAX:04AF28F0  EBX:04AF2C18  ECX:4C494146  EDX:734B1410
    ESI:04AF28E8  EDI:04AF0000  EBP:0019D2A8
    CS:EIP:0023:777E029D  SS:ESP:002B:0019D150
    DS:002B  ES:002B  FS:0053  GS:002B
    Flags:00010246
    Exception Parameters: 00000000 4C494146
    CS:EIP: 8B 09 8B 52 04 3B CA 0F 85 7B 5B 05 00 3B C8 0F
    SS:ESP: AA0F650F 04AF2C18 04AF0000 04AF2C20 FFFFFE77 000000D2 FFFFFE77 00000000 00000000 FFFFFFE0 001D5234 02A92B74 0019D1D8 04AF0000 00000066 04AF2598
    C stack:
    EIP:     EBP:       Frame: OldEBP, RetAddr, Params...
    777E029D 0019D2A8   0019D2FC 777DFA0D 04AF2C18 04AF2C20 005D896A 19781372 04AF2C20 04AF28F0 7351EC3F 04AF2440
    777DFA0D 0019D2FC   0019D324 73515B46 04AF0000 00000000 04AF2C20 04AF2C20 1978177F 0000043F FFFFF3C0 19781372
    73515B46 0019D324   0019D35C 0041ED52 04AF2C20 00000000 0081C934 0019D36C 005A53AB 0074E1A8 0019D330 00000000
    0041ED52 0019D35C   0019D398 0041D71B 04AF2C20 00000003 0019E0E8 005A53AB 0074DCFC 0019D36C 00000024 005D896A
    0041D71B 0019D398   0019D3B4 004A6884 000000C1 00000050 02A951CC 00000000 00000000
    004A6884 0019D3B4   0019D4C8 004A060B 00000001 005E0430 00000000 0081C934 02FB6910 00000000 FFFFFFFF 00000000
    004A060B 0019D4C8   0019D4D8 004041B8 005D891D 005D53F8
    004041B8 0019D4D8   0019D4F4 004A6884 000000B7 00000050 02A951CC 00000000 00000486
    004A6884 0019D4F4   0019D608 004A060B 00000002 005E021F 00000000 005DCE78 02FA2C9C 06CFD624 06CFD624 0081C944
    004A060B 0019D608   0019D618 00404598 005E0390 005DBDB8
    00404598 0019D618   0019D638 004A6A41 0081C934 000000B5 00000050 02A951CC 029D000F 00000405
    004A6A41 0019D638   0019D74C 004A074C 00000000 005DE063 00000000 005DBF18 004A6A8C 00000004 00000000 000000B1
    004A074C 0019D74C   0019D75C 00404538 005E0218 005DBDB8
    00404538 0019D75C   0019D77C 004A6A41 0081C934 000000B2 00000050 02A951CC 0141000F 000003BC
    004A6A41 0019D77C   0019D890 004A074C 00000000 0081C934 FFFFFFFF 02A928F4 004C1725 02F9B4FC 02A928F4 004A5F1C
    004A074C 0019D890   0019D8C4 004A6BFD 005DE05E 005DBDB8 06D1D81C 00000001 00190001 004A6B50 000000B0 00000050
    004A6BFD 0019D8C4   0019D8F8 004B47AB 00000001 00729A6A 00000000 007068C4 004A6A41 0081C934 000000AD 00000050
    004B47AB 0019D8F8   0019DA0C 004A074C 00000000 00710858 00000000 007068C4 02FA2C9C 06D1D1EC 06D1D1EC 02B1F660
    004A074C 0019DA0C   0019DA1C 00414128 00729A32 007051E4
    00414128 0019DA1C   0019DA3C 004A6A41 0081C934 000000AA 00000050 02F9B204 014F001A 00002BDE
Modules:
00400000 00591000 D:\Sistemas\CONTAB\FOOD\FOOD.EXE
777A0000 0018D000 C:\WINDOWS\SYSTEM32\ntdll.dll
744D0000 000D0000 C:\WINDOWS\System32\KERNEL32.DLL
74660000 001D7000 C:\WINDOWS\System32\KERNELBASE.dll
76EC0000 00078000 C:\WINDOWS\System32\ADVAPI32.DLL
741E0000 000BD000 C:\WINDOWS\System32\msvcrt.dll
767E0000 00043000 C:\WINDOWS\System32\sechost.dll
76E00000 000BE000 C:\WINDOWS\System32\RPCRT4.dll
741C0000 00020000 C:\WINDOWS\System32\SspiCli.dll
741B0000 0000A000 C:\WINDOWS\System32\CRYPTBASE.dll
77700000 00057000 C:\WINDOWS\System32\bcryptPrimitives.dll
77600000 000D4000 C:\WINDOWS\System32\COMDLG32.DLL
74180000 00017000 C:\WINDOWS\SYSTEM32\MPR.DLL
741A0000 00008000 C:\WINDOWS\SYSTEM32\VERSION.DLL
73670000 0006C000 C:\WINDOWS\SYSTEM32\WINSPOOL.DRV
77230000 00246000 C:\WINDOWS\System32\combase.dll
76FC0000 00117000 C:\WINDOWS\System32\ucrtbase.dll
73EF0000 00211000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.16299.192_none_5d760485a7e0eb41\COMCTL32.DLL
739C0000 00030000 C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
73D90000 00019000 C:\WINDOWS\SYSTEM32\bcrypt.dll
742A0000 00022000 C:\WINDOWS\System32\GDI32.dll
74840000 00088000 C:\WINDOWS\System32\shcore.dll
76830000 0015E000 C:\WINDOWS\System32\gdi32full.dll
77480000 00175000 C:\WINDOWS\System32\USER32.dll
76D20000 0007C000 C:\WINDOWS\System32\msvcp_win.dll
76FA0000 00016000 C:\WINDOWS\System32\win32u.dll
76B80000 00045000 C:\WINDOWS\System32\SHLWAPI.dll
75440000 01333000 C:\WINDOWS\System32\SHELL32.dll
77760000 00038000 C:\WINDOWS\System32\cfgmgr32.dll
748D0000 005C6000 C:\WINDOWS\System32\windows.storage.dll
776F0000 0000E000 C:\WINDOWS\System32\kernel.appcore.dll
771E0000 00045000 C:\WINDOWS\System32\powrprof.dll
76DB0000 00014000 C:\WINDOWS\System32\profapi.dll
76BD0000 000F7000 C:\WINDOWS\System32\OLE32.DLL
745B0000 00093000 C:\WINDOWS\System32\OLEAUT32.DLL
74170000 00006000 C:\WINDOWS\SYSTEM32\MSIMG32.DLL
739F0000 00024000 C:\WINDOWS\SYSTEM32\WINMM.DLL
77170000 00066000 C:\WINDOWS\System32\WS2_32.DLL
73EC0000 00026000 C:\WINDOWS\SYSTEM32\OLEDLG.DLL
734B0000 0016B000 C:\WINDOWS\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.16299.192_none_8e60f76b0273650f\GDIPLUS.DLL
73990000 00023000 C:\WINDOWS\SYSTEM32\WINMMBASE.dll
76DD0000 00025000 C:\WINDOWS\System32\IMM32.DLL
73060000 00079000 C:\WINDOWS\system32\uxtheme.dll
742F0000 00144000 C:\WINDOWS\System32\MSCTF.dll
73700000 00023000 C:\WINDOWS\system32\dwmapi.dll
72FE0000 00077000 C:\WINDOWS\System32\TextInputFramework.dll
72DA0000 00234000 C:\WINDOWS\System32\CoreUIComponents.dll
72D10000 0008C000 C:\WINDOWS\System32\CoreMessaging.dll
73C60000 00028000 C:\WINDOWS\SYSTEM32\ntmarta.dll
72C40000 000CB000 C:\WINDOWS\SYSTEM32\wintypes.dll
Called from GDIP_DELETEIMAGE(0)
Called from PALBMPFREE(1158) in .\source\classes\BITMAP.PRG
Called from TBTNBMP:FREEBITMAPS(1029) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:DESTROY(956) in .\source\classes\BTNBMP.PRG
Called from (b)TBTNBMP(184) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:END(0) in .\source\classes\BTNBMP.PRG
Called from TXBRWCOLUMN:END(11230) in .\source\classes\XBROWSE.PRG
Called from TXBROWSE:DESTROY(896) in .\source\classes\XBROWSE.PRG
Called from TWINDOW:HANDLEEVENT(0)
Called from TCONTROL:HANDLEEVENT(1731) in .\source\classes\CONTROL.PRG
Called from TXBROWSE:HANDLEEVENT(10504) in .\source\classes\XBROWSE.PRG
Called from _FWH(3368) in .\source\classes\WINDOW.PRG
Called from DIALOGBOX(0)
Called from TDIALOG:ACTIVATE(298) in .\source\classes\DIALOG.PRG
Called from NEWMOD(0) in D:\Sistemas\CONTAB\FOOD\LT\PRG\FOOD11.PRG
Called from (b)BOTONES(0) in D:\Sistemas\CONTAB\FOOD\LT\PRG\FOOD11.PRG
Called from TBTNBMP:CLICK(693) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:LBUTTONUP(944) in .\source\classes\BTNBMP.PRG
Called from TCONTROL:HANDLEEVENT(1721) in .\source\classes\CONTROL.PRG
Called from TBTNBMP:HANDLEEVENT(1909) in .\source\classes\BTNBMP.PRG
Called from _FWH(3368) in .\source\classes\WINDOW.PRG
Called from DIALOGBOXINDIRECT(0)
Called from TDIALOG:ACTIVATE(298) in .\source\classes\DIALOG.PRG
Called from TRANSFERENCIAS(0) in D:\Sistemas\CONTAB\FOOD\LT\PRG\FOOD11.PRG
Called from (b)BUSCAITEM(0) in D:\Sistemas\PROCESOS.PRG
Called from TBTNBMP:CLICK(693) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:LBUTTONUP(944) in .\source\classes\BTNBMP.PRG
Called from TCONTROL:HANDLEEVENT(1721) in .\source\classes\CONTROL.PRG
Called from TBTNBMP:HANDLEEVENT(1909) in .\source\classes\BTNBMP.PRG
Called from _FWH(3368) in .\source\classes\WINDOW.PRG
Called from WINRUN(0)
Called from TWINDOW:ACTIVATE(1043) in .\source\classes\WINDOW.PRG
Called from MAIN(0) in D:\Sistemas\CONTAB\FOOD\LT\PRG\FOOD.PRG
FOOD.EXE - 1 error(es), 0 advertencia(s)
 

Thanks for the help
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1645
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Error en oCol:nBtnBmp

Postby nageswaragunupudi » Mon Apr 09, 2018 4:02 pm

Can you please try with this:

Code: Select all  Expand view  RUN

oBrw:lGDIP := .f.
 


Insert this line immediately after defining XBrowse.
Please let me know if you are still getting any error.

Please be patient. This is because I made many tests here but I could not reproduce the problem you are having.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Error en oCol:nBtnBmp

Postby acuellar » Mon Apr 09, 2018 7:20 pm

Perfect.
Works

Thank you so much
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1645
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Error en oCol:nBtnBmp

Postby nageswaragunupudi » Wed Apr 11, 2018 1:29 pm

Glad it is working for you, if you set oBrw:lGDIP := .f. (default .t. )

But you are getting the error if you leave the default value of oBrw:lGDIP as .T.
We need to locate the bug and fix it, so that this works in all cases. For this we need your help.

Please try to build and run this small program:

xbrbtn.prg
Code: Select all  Expand view  RUN
#include "fivewin.ch"

function Main()

   local oDlg, oBrw

   USE \FWH\SAMPLES\CUSTOMER   // or any other DBF

   DEFINE DIALOG oDlg SIZE 700,400 PIXEL TRUEPIXEL
   @ 20,20 XBROWSE oBrw SIZE -20,-20 PIXEL OF oDlg DATASOURCE Alias() ;
      AUTOCOLS CELL LINES NOBORDER

   WITH OBJECT oBrw:aCols[ 2 ]
      :nEditType     := EDIT_BUTTON
      :AddResource( "OPEN" )
      :nBtnBmp       := 1
      :bEditBlock    := { || MsgInfo( "ok" ) }
   END
   oBrw:CreateFromCode()

   ACTIVATE DIALOG oDlg CENTERED

return nil
 


xbrbtn.rc
Code: Select all  Expand view  RUN
OPEN BITMAP "\fwh\bitmaps\16x16\open.bmp"
 


I am not getting any error here. I tried with different bitmaps.
I request you to help us by trying this program with different bitmaps and let us know if you get the error.
We appreciate your help in testing.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Error en oCol:nBtnBmp

Postby acuellar » Wed Apr 11, 2018 7:52 pm

It hangs up when leaving

Image
Code: Select all  Expand view  RUN

--------------------Configuración: ACR - Release--------------------
Turbo Incremental Link 6.80 Copyright (c) 1997-2017 Embarcadero Technologies, Inc.
Unrecoverable error 6005: Exception error:
    Exception Code:C0000005 ACCESS_VIOLATION
    Exception Address:777E029D
    EAX:04962B10  EBX:04962E38  ECX:4C494146  EDX:73FA1410
    ESI:04962B08  EDI:04960000  EBP:0019EC70
    CS:EIP:0023:777E029D  SS:ESP:002B:0019EB18
    DS:002B  ES:002B  FS:0053  GS:002B
    Flags:00010246
    Exception Parameters: 00000000 4C494146
    CS:EIP: 8B 09 8B 52 04 3B CA 0F 85 7B 5B 05 00 3B C8 0F
    SS:ESP: 50A4336B 04962E38 04960000 04962E40 FFFFFE28 0000005E FFFFFE28 00000000 00000000 FFFFFFF8 001D19CC 02A0851C 0019EBA0 04960000 00000066 049627B8
    C stack:
    EIP:     EBP:       Frame: OldEBP, RetAddr, Params...
    777E029D 0019EC70   0019ECC4 777DFA0D 04962E38 04962E40 005A309E C0E31372 04962E40 04962B10 7400EC3F 04962660
    777DFA0D 0019ECC4   0019ECEC 74005B46 04960000 00000000 04962E40 04962E40 C0E3177F 0000043F FFFFF3C0 C0E31372
    74005B46 0019ECEC   0019ED24 0041C38A 04962E40 00000000 00786B54 0019ED34 0058A1B7 00706770 0019ECF8 00000000
    0041C38A 0019ED24   0019ED60 0041AD53 04962E40 00000003 0019FAB0 0058A1B7 007062C4 0019ED34 00000024 005A309E
    0041AD53 0019ED60   0019ED7C 0049C984 0000004A 00000000 02A0FB34 00000000 00000000
    0049C984 0019ED7C   0019EE90 0049670B 00000001 005AAB64 00000000 00786B54 0000001C 0019EF18 7282AAA4 FFFFFFFF
    0049670B 0019EE90   0019EEA0 00402614 005A3051 0059FB2C
    00402614 0019EEA0   0019EEBC 0049C984 00000040 00000000 02A0FB34 00000000 00000486
    0049C984 0019EEBC   0019EFD0 0049670B 00000002 005AA953 00000000 005A75AC 02ECB224 02EF030C 02EF030C 02AF9040
    0049670B 0019EFD0   0019EFE0 004029F4 005AAAC4 005A64EC
    004029F4 0019EFE0   0019F000 0049CB41 00786B54 0000003E 00000000 02A0FB34 029D000D 00000405
    0049CB41 0019F000   0019F114 0049684C 00000000 005A8797 00000000 005A664C 0019F034 00786F28 00000012 00000000
    0049684C 0019F114   0019F124 00402994 005AA94C 005A64EC
    00402994 0019F124   0019F144 0049CB41 00786B54 0000003B 00000000 02A0FB34 0141000D 000003BC
    0049CB41 0019F144   0019F258 0049684C 00000000 00786B54 FFFFFFFF 02A0829C 00000000 02F86984 02F86984 727E49BD
    0049684C 0019F258   0019F28C 0049CCFD 005A8792 005A64EC 02A2B9A8 00000001 00190001 0049CC50 00000039 00000000
    0049CCFD 0019F28C   0019F2C0 004AA8AB 00000001 006E2032 00000000 006BEE8C 0049CB41 00786B54 00000036 00000000
    004AA8AB 0019F2C0   0019F3D4 0049684C 00000000 006C8E20 00000000 006BEE8C 00000003 50A42C0B 00000000 7749AE10
    0049684C 0019F3D4   0019F3E4 00411760 006E1FFA 006BD7AC
    00411760 0019F3E4   0019F404 0049CB41 00786B54 00000033 00000000 02A2FAA4 014F000B 00002BDE
Modules:
00400000 00442000 D:\Sistemas\AcrSoft\OK\ACR.EXE
777A0000 0018D000 C:\WINDOWS\SYSTEM32\ntdll.dll
744D0000 000D0000 C:\WINDOWS\System32\KERNEL32.DLL
74660000 001D7000 C:\WINDOWS\System32\KERNELBASE.dll
76EC0000 00078000 C:\WINDOWS\System32\ADVAPI32.DLL
741E0000 000BD000 C:\WINDOWS\System32\msvcrt.dll
767E0000 00043000 C:\WINDOWS\System32\sechost.dll
76E00000 000BE000 C:\WINDOWS\System32\RPCRT4.dll
741C0000 00020000 C:\WINDOWS\System32\SspiCli.dll
741B0000 0000A000 C:\WINDOWS\System32\CRYPTBASE.dll
77700000 00057000 C:\WINDOWS\System32\bcryptPrimitives.dll
77600000 000D4000 C:\WINDOWS\System32\COMDLG32.DLL
77230000 00246000 C:\WINDOWS\System32\combase.dll
741A0000 00008000 C:\WINDOWS\SYSTEM32\VERSION.DLL
73670000 0006C000 C:\WINDOWS\SYSTEM32\WINSPOOL.DRV
73010000 00211000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.16299.192_none_5d760485a7e0eb41\COMCTL32.DLL
76FC0000 00117000 C:\WINDOWS\System32\ucrtbase.dll
742A0000 00022000 C:\WINDOWS\System32\GDI32.dll
739C0000 00030000 C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
74840000 00088000 C:\WINDOWS\System32\shcore.dll
73D90000 00019000 C:\WINDOWS\SYSTEM32\bcrypt.dll
76830000 0015E000 C:\WINDOWS\System32\gdi32full.dll
77480000 00175000 C:\WINDOWS\System32\USER32.dll
76D20000 0007C000 C:\WINDOWS\System32\msvcp_win.dll
76FA0000 00016000 C:\WINDOWS\System32\win32u.dll
76B80000 00045000 C:\WINDOWS\System32\SHLWAPI.dll
75440000 01333000 C:\WINDOWS\System32\SHELL32.dll
77760000 00038000 C:\WINDOWS\System32\cfgmgr32.dll
748D0000 005C6000 C:\WINDOWS\System32\windows.storage.dll
776F0000 0000E000 C:\WINDOWS\System32\kernel.appcore.dll
771E0000 00045000 C:\WINDOWS\System32\powrprof.dll
76DB0000 00014000 C:\WINDOWS\System32\profapi.dll
76BD0000 000F7000 C:\WINDOWS\System32\OLE32.DLL
745B0000 00093000 C:\WINDOWS\System32\OLEAUT32.DLL
74190000 00006000 C:\WINDOWS\SYSTEM32\MSIMG32.DLL
73F70000 00024000 C:\WINDOWS\SYSTEM32\WINMM.DLL
73990000 00026000 C:\WINDOWS\SYSTEM32\OLEDLG.DLL
73EB0000 00023000 C:\WINDOWS\SYSTEM32\WINMMBASE.dll
73FA0000 0016B000 C:\WINDOWS\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.16299.192_none_8e60f76b0273650f\GDIPLUS.DLL
76DD0000 00025000 C:\WINDOWS\System32\IMM32.DLL
73EE0000 00079000 C:\WINDOWS\system32\uxtheme.dll
742F0000 00144000 C:\WINDOWS\System32\MSCTF.dll
73960000 00023000 C:\WINDOWS\system32\dwmapi.dll
72AA0000 00077000 C:\WINDOWS\System32\TextInputFramework.dll
727D0000 0008C000 C:\WINDOWS\System32\CoreMessaging.dll
72860000 00234000 C:\WINDOWS\System32\CoreUIComponents.dll
73C60000 00028000 C:\WINDOWS\SYSTEM32\ntmarta.dll
72700000 000CB000 C:\WINDOWS\SYSTEM32\wintypes.dll
Called from GDIP_DELETEIMAGE(0)
Called from PALBMPFREE(1158) in .\source\classes\BITMAP.PRG
Called from TBTNBMP:FREEBITMAPS(1029) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:DESTROY(956) in .\source\classes\BTNBMP.PRG
Called from (b)TBTNBMP(184) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:END(0) in .\source\classes\BTNBMP.PRG
Called from TXBRWCOLUMN:END(11230) in .\source\classes\XBROWSE.PRG
Called from TXBROWSE:DESTROY(896) in .\source\classes\XBROWSE.PRG
Called from TWINDOW:HANDLEEVENT(0)
Called from TCONTROL:HANDLEEVENT(1731) in .\source\classes\CONTROL.PRG
Called from TXBROWSE:HANDLEEVENT(10504) in .\source\classes\XBROWSE.PRG
Called from _FWH(3368) in .\source\classes\WINDOW.PRG
Called from DIALOGBOXINDIRECT(0)
Called from TDIALOG:ACTIVATE(298) in .\source\classes\DIALOG.PRG
Called from MAIN(0) in D:\Sistemas\AcrSoft\OK\PRG\ACR.prg
No se pudo encontrar D:\Sistemas\AcrSoft\OK\OBJ\*.TDS
No se pudo encontrar D:\Sistemas\AcrSoft\OK\OBJ\*.MAP
No se pudo encontrar D:\Sistemas\AcrSoft\OK\OBJ\*.EXE
No se pudo encontrar D:\Sistemas\AcrSoft\*.MAP
No se pudo encontrar D:\Sistemas\AcrSoft\*.UDP
No se pudo encontrar D:\Sistemas\AcrSoft\*.PUI
No se pudo encontrar D:\Sistemas\AcrSoft\*.TDS
No se pudo encontrar D:\Sistemas\AcrSoft\OK\*.PUI
ACR.EXE - 1 error(es), 0 advertencia(s)
 

I Use
Code: Select all  Expand view  RUN

--------------------Configuración: ACR - Release--------------------
FWH1802
Harbour 3.2.0dev (r1801051438)
Copyright (c) 1999-2016, http://harbour-project.org/
Embarcadero C++ 7.30 for Win32 Copyright (c) 1993-2017 Embarcadero Technologies, Inc.
ACR.c:
Borland Resource Compiler  Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
Turbo Incremental Link 6.80 Copyright (c) 1997-2017 Embarcadero Technologies, Inc.
 

Thanks,
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1645
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Error en oCol:nBtnBmp

Postby nageswaragunupudi » Thu Apr 12, 2018 2:10 am

Do you mind taking some more trouble?
Please save both the sources as xbrbtn2.prg and xbrbtn2.rc in \fwh\samples folder
Go to \fwh\samples folder and execute "buildh xbrbtn2"
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Error en oCol:nBtnBmp

Postby acuellar » Thu Apr 12, 2018 12:35 pm

Still the same

File hb_out
Code: Select all  Expand view  RUN

Application Internal Error - D:\fwh\samples\xbrbtn2.exe
Terminated at: 2018-04-12 08:18:06
Unrecoverable error 6005: Exception error:

    Exception Code:C0000005 ACCESS_VIOLATION
    Exception Address:777DFD18
    EAX:00000000  EBX:04922E48  ECX:049231C0  EDX:00000000
    ESI:049231B8  EDI:04920000  EBP:0019EC98
    CS:EIP:0023:777DFD18  SS:ESP:002B:0019EB40
    DS:002B  ES:002B  FS:0053  GS:002B
    Flags:00010246
    Exception Parameters: 00000000 00000000
    CS:EIP: 8B 00 8B 52 04 3B C2 0F 85 F9 64 05 00 3B C1 0F
    SS:ESP: C848AC96 04923178 04920000 04923180 00000066 04922E48 67010066 04920290 81000081 048AFD1C 00786D7C 0019EBA0 0019EB7C 004BFEB1 0492042C 0000004B

    C stack:
    EIP:     EBP:       Frame: OldEBP, RetAddr, Params...
    777DFD18 0019EC98   0019ECEC 777DFA0D 04923178 04923180 005A30C2 36C51372 04923180 0019ECEC 7324F40F 005F6BB6
    777DFA0D 0019ECEC   0019ED14 73245B46 04920000 00000000 04923180 00000000 36C5177F 0000043F FFFFF3C0 36C51372
    73245B46 0019ED14   0019ED24 0041C2CD 04923180 00786D7C
    0041C2CD 0019ED24   0019ED60 0041AD53 04923180 00000003 0019FAB0 0058A1B7 007062E8 0019ED34 00000024 005A30C2
    0041AD53 0019ED60   0019ED7C 004A5010 0000004A 00000000 02A0F96C 00000000 00000000
    004A5010 0019ED7C   0019EE90 0049ED97 00000001 005AABDB 00000000 00786D7C 0000001C 0019EF18 7257AAA4 FFFFFFFF
    0049ED97 0019EE90   0019EEA0 00402614 005A3075 0059FB50
    00402614 0019EEA0   0019EEBC 004A5010 00000040 00000000 02A0F96C 00000000 00000486
    004A5010 0019EEBC   0019EFD0 0049ED97 00000001 005AA977 00000000 005A75D0 046FB17C 0490030C 0490030C 02A3E298
    0049ED97 0019EFD0   0019EFE0 004029F4 005AAAE8 005A6510
    004029F4 0019EFE0   0019F000 004A51CD 00786D7C 0000003E 00000000 02A0F96C 029D000D 0000040B
    004A51CD 0019F000   0019F114 0049EED8 00000000 005A87BB 00000000 005A6670 0019F034 00787150 00000012 00000000
    0049EED8 0019F114   0019F124 00402994 005AA970 005A6510
    00402994 0019F124   0019F144 004A51CD 00786D7C 0000003B 00000000 02A0F96C 0141000D 000003BC
    004A51CD 0019F144   0019F258 0049EED8 00000000 00786D7C FFFFFFFF 02A08124 00000000 02E467EC 02E467EC 725349BD
    0049EED8 0019F258   0019F28C 004A5389 005A87B6 005A6510 02DAB868 00000001 00190001 004A52DC 00000039 00000000
    004A5389 0019F28C   0019F2C0 004B2F37 00000001 006E203A 00000000 006BEEB0 004A51CD 00786D7C 00000036 00000000
    004B2F37 0019F2C0   0019F3D4 0049EED8 00000000 006C8E44 00000000 006BEEB0 00000003 C848B31E 00000000 7749AE10
    0049EED8 0019F3D4   0019F3E4 00411760 006E201E 006BD7D0
    00411760 0019F3E4   0019F404 004A51CD 00786D7C 00000033 00000000 02DAF964 014F000B 00002BDA


Modules:
00400000 003C4000 D:\fwh\samples\xbrbtn2.exe
777A0000 0018D000 C:\WINDOWS\SYSTEM32\ntdll.dll
744D0000 000D0000 C:\WINDOWS\System32\KERNEL32.DLL
74660000 001D7000 C:\WINDOWS\System32\KERNELBASE.dll
76EC0000 00078000 C:\WINDOWS\System32\ADVAPI32.DLL
741E0000 000BD000 C:\WINDOWS\System32\msvcrt.dll
767E0000 00043000 C:\WINDOWS\System32\sechost.dll
76E00000 000BE000 C:\WINDOWS\System32\RPCRT4.dll
741C0000 00020000 C:\WINDOWS\System32\SspiCli.dll
741B0000 0000A000 C:\WINDOWS\System32\CRYPTBASE.dll
77700000 00057000 C:\WINDOWS\System32\bcryptPrimitives.dll
77600000 000D4000 C:\WINDOWS\System32\COMDLG32.DLL
77230000 00246000 C:\WINDOWS\System32\combase.dll
741A0000 00008000 C:\WINDOWS\SYSTEM32\VERSION.DLL
73670000 0006C000 C:\WINDOWS\SYSTEM32\WINSPOOL.DRV
73EF0000 00211000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.16299.192_none_5d760485a7e0eb41\COMCTL32.DLL
76FC0000 00117000 C:\WINDOWS\System32\ucrtbase.dll
742A0000 00022000 C:\WINDOWS\System32\GDI32.dll
74840000 00088000 C:\WINDOWS\System32\shcore.dll
739C0000 00030000 C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
73D90000 00019000 C:\WINDOWS\SYSTEM32\bcrypt.dll
76830000 0015E000 C:\WINDOWS\System32\gdi32full.dll
77480000 00175000 C:\WINDOWS\System32\USER32.dll
76D20000 0007C000 C:\WINDOWS\System32\msvcp_win.dll
76FA0000 00016000 C:\WINDOWS\System32\win32u.dll
76B80000 00045000 C:\WINDOWS\System32\SHLWAPI.dll
75440000 01333000 C:\WINDOWS\System32\SHELL32.dll
77760000 00038000 C:\WINDOWS\System32\cfgmgr32.dll
748D0000 005C6000 C:\WINDOWS\System32\windows.storage.dll
776F0000 0000E000 C:\WINDOWS\System32\kernel.appcore.dll
771E0000 00045000 C:\WINDOWS\System32\powrprof.dll
76DB0000 00014000 C:\WINDOWS\System32\profapi.dll
76BD0000 000F7000 C:\WINDOWS\System32\OLE32.DLL
745B0000 00093000 C:\WINDOWS\System32\OLEAUT32.DLL
74160000 00006000 C:\WINDOWS\SYSTEM32\MSIMG32.DLL
739F0000 00024000 C:\WINDOWS\SYSTEM32\WINMM.DLL
73EC0000 00026000 C:\WINDOWS\SYSTEM32\OLEDLG.DLL
73770000 00023000 C:\WINDOWS\SYSTEM32\WINMMBASE.dll
731E0000 0016B000 C:\WINDOWS\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.16299.192_none_8e60f76b0273650f\GDIPLUS.DLL
76DD0000 00025000 C:\WINDOWS\System32\IMM32.DLL
72F50000 00079000 C:\WINDOWS\system32\uxtheme.dll
742F0000 00144000 C:\WINDOWS\System32\MSCTF.dll
73700000 00023000 C:\WINDOWS\system32\dwmapi.dll
727F0000 00077000 C:\WINDOWS\System32\TextInputFramework.dll
72520000 0008C000 C:\WINDOWS\System32\CoreMessaging.dll
725B0000 00234000 C:\WINDOWS\System32\CoreUIComponents.dll
73C60000 00028000 C:\WINDOWS\SYSTEM32\ntmarta.dll
72450000 000CB000 C:\WINDOWS\SYSTEM32\wintypes.dll

Called from GDIP_DELETEIMAGE(0)
Called from PALBMPFREE(1158) in .\source\classes\BITMAP.PRG
Called from TBTNBMP:FREEBITMAPS(1035) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:DESTROY(956) in .\source\classes\BTNBMP.PRG
Called from (b)TBTNBMP(184) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:END(0) in .\source\classes\BTNBMP.PRG
Called from TXBRWCOLUMN:END(11226) in .\source\classes\XBROWSE.PRG
Called from TXBROWSE:DESTROY(896) in .\source\classes\XBROWSE.PRG
Called from TWINDOW:HANDLEEVENT(0)
Called from TCONTROL:HANDLEEVENT(1731) in .\source\classes\CONTROL.PRG
Called from TXBROWSE:HANDLEEVENT(10504) in .\source\classes\XBROWSE.PRG
Called from _FWH(3368) in .\source\classes\WINDOW.PRG
Called from DIALOGBOXINDIRECT(0)
Called from TDIALOG:ACTIVATE(298) in .\source\classes\DIALOG.PRG
Called from MAIN(22) in xbrbtn2.prg
------------------------------------------------------------------------
 

It's when you leave the dialogue
Code: Select all  Expand view  RUN

#include "fivewin.ch"

function Main()

   local oDlg, oBrw

   USE D:\Sistemas\AcrSoft\OK\DATA\CUSTOMER  

   DEFINE DIALOG oDlg SIZE 700,400 PIXEL TRUEPIXEL
   @ 20,20 XBROWSE oBrw SIZE -20,-20 PIXEL OF oDlg DATASOURCE Alias() ;
      AUTOCOLS CELL LINES NOBORDER
   WITH OBJECT oBrw:aCols[ 2 ]
     
      :nEditType     := EDIT_BUTTON
      :AddResource( "OPEN" )
      :nBtnBmp       := 1
      :bEditBlock    := { || MsgInfo( "ok" ) }
   END
   oBrw:CreateFromCode()

   ACTIVATE DIALOG oDlg CENTERED
  ?"Finish" //does not execute
return nil
 
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1645
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Error en oCol:nBtnBmp

Postby nageswaragunupudi » Mon Apr 16, 2018 2:11 am

Thanks.

For now, we have the workaround of setting oBrw:lGDIP := .f.

This issue is completely fixed in 18.03
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Error en oCol:nBtnBmp

Postby acuellar » Mon Apr 16, 2018 12:46 pm

Thanks. Mr. Rao
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1645
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 103 guests