BtnBmp error en METHOD LoadBitmaps 15.06

BtnBmp error en METHOD LoadBitmaps 15.06

Postby luisduque » Fri Sep 02, 2016 1:24 am

Algunos clientes los cuales le actualicé han venido reportando un error y sale un mensaje que dejó de funcionar
se le hizo un seguimiento al HB_OUT.TXT en el cual el error da en METHOD LoadBitmaps

Called from PALBMPNEW(0)
Called from WNDREADPALBMPEX(588) in .\source\function\IMGTXTIO.PRG
Called from (b)TWINDOW(551) in .\source\classes\WINDOW.PRG
Called from TBTNBMP:READPALBMPEX(0) in .\source\classes\WINDOW.PRG
Called from TBTNBMP:SETIMAGES(1004) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:LOADBITMAPS(1031) in .\source\classes\BTNBMP.PRG


revisando con versiones anteriores

Code: Select all  Expand view

METHOD LoadBitmaps( cResName1, cResName2, cBmpFile1, cBmpFile2,;
                    cResName3, cBmpFile3, cResName4, cBmpFile4 ) CLASS TBtnBmp

   local aBmpPal

   if ! Empty( cResName1 )
      aBmpPal = PalBmpLoad( cResName1 )
      ::hBitmap1  = aBmpPal[ 1 ]
      ::hPalette1 = aBmpPal[ 2 ]
      ::HasAlpha( ::hBitmap1, BTN_UP )
   endif

   if ! Empty( cResName2 )
      aBmpPal = PalBmpLoad( cResName2 )
      ::hBitmap2  = aBmpPal[ 1 ]
      ::hPalette2 = aBmpPal[ 2 ]
      ::HasAlpha( ::hBitmap2, BTN_DOWN )
   endif

   if ! Empty( cResName3 )
      aBmpPal = PalBmpLoad( cResName3 )
      ::hBitmap3  = aBmpPal[ 1 ]
      ::hPalette3 = aBmpPal[ 2 ]
      ::HasAlpha( ::hBitmap3, BTN_DISABLE )
   endif

   if ! Empty( cResName4 )
      aBmpPal = PalBmpLoad( cResName4 )
      ::hBitmap4  = aBmpPal[ 1 ]
      ::hPalette4 = aBmpPal[ 2 ]
      ::HasAlpha( ::hBitmap4, BTN_OVERMOUSE )
   endif


   if ! Empty( cBmpFile1 )
      if File( cBmpFile1 )
         ::cBmpFile1 = cBmpFile1
         aBmpPal     = PalBmpRead( ::GetDC(), cBmpFile1 )
         ::hBitmap1  = aBmpPal[ 1 ]
         ::hPalette1 = aBmpPal[ 2 ]
         ::HasAlpha( ::hBitmap1, BTN_UP )
         ::ReleaseDC()
      endif
   endif

   if ! Empty( cBmpFile2 )
      if File( cBmpFile2 )
         ::cBmpFile2 = cBmpFile2
         aBmpPal     = PalBmpRead( ::GetDC(), cBmpFile2 )
         ::hBitmap2  = aBmpPal[ 1 ]
         ::hPalette2 = aBmpPal[ 2 ]
         ::HasAlpha( ::hBitmap2, BTN_DOWN )
         ::ReleaseDC()
      endif
   endif

   if ! Empty( cBmpFile3 )
      if File( cBmpFile3 )
         ::cBmpFile3 = cBmpFile3
         aBmpPal     = PalBmpRead( ::GetDC(), cBmpFile3 )
         ::hBitmap3  = aBmpPal[ 1 ]
         ::hPalette3 = aBmpPal[ 2 ]
         ::HasAlpha( ::hBitmap3, BTN_DISABLE )
         ::ReleaseDC()
      endif
   endif

   if ! Empty( cBmpFile4 )
      if File( cBmpFile4 )
         ::cBmpFile4 = cBmpFile4
         aBmpPal     = PalBmpRead( ::GetDC(), cBmpFile4 )
         ::hBitmap4  = aBmpPal[ 1 ]
         ::hPalette4 = aBmpPal[ 2 ]
         ::HasAlpha( ::hBitmap4, BTN_OVERMOUSE )
         ::ReleaseDC()
      endif
   endif


   if ! Empty( ::hBitmap1 )
      PalBmpNew( ::hWnd, ::hBitmap1, ::hPalette1 )

   endif

   if ! Empty( ::hBitmap2 )
      PalBmpNew( ::hWnd, ::hBitmap2, ::hPalette2 )
   endif

   if ! Empty( ::hBitmap3 )
      PalBmpNew( ::hWnd, ::hBitmap3, ::hPalette3 )
   endif

   if ! Empty( ::hBitmap4 )
      PalBmpNew( ::hWnd, ::hBitmap4, ::hPalette4 )
   endif

   if ::l2007
      /*
      if Empty( ::hBitmap2 ) .and. ! Empty( ::hBitmap1 )
         ::hBitmap2 := ResizeImg( ::hBitmap1, nBmpWidth( ::hBitmap1 ) - 2, nBmpHeight( ::hBitmap1 ) - 2  )
         ::HasAlpha( ::hBitmap2, BTN_DOWN )
      endif
      if Empty( ::hBitmap3 ) .and. ! Empty( ::hBitmap1 )
         ::hBitmap3 := Blur( ::hBitmap1, 1 )
         ::HasAlpha( ::hBitmap3, BTN_DISABLE )
      endif
      if Empty( ::hBitmap4 ) .and. ! Empty( ::hBitmap1 )
         ::hBitmap4 := ResizeImg( ::hBitmap1, nBmpWidth( ::hBitmap1 ) + 6, nBmpHeight( ::hBitmap1 ) + 6  )
         ::HasAlpha( ::hBitmap4, BTN_OVERMOUSE )
      endif
      */

   endif


return nil
 


Versión Actual
Code: Select all  Expand view


METHOD LoadBitmaps( cResName1, cResName2, cBmpFile1, cBmpFile2,;
                    cResName3, cBmpFile3, cResName4, cBmpFile4 ) CLASS TBtnBmp

   ::SetImages( IfNil( cResName1, cBmpFile1 ), IfNil( cResName2, cBmpFile2 ), ;
                IfNil( cResName3, cBmpFile3 ), IfNil( cResName4, cBmpFile4 ), .f.  )

/*
   local aBmpPal
   local cSrc

   if ! Empty( cSrc := IfNil( cResName1, cBmpFile1 ) )
      aBmpPal        = ::ReadPalBmpEx( cSrc,,::lGDIP )
      ::hBitmap1     = aBmpPal[ 1 ]
      ::hPalette1    = aBmpPal[ 2 ]
      ::aAlpha[ 1 ]  = aBmpPal[ 5 ]
      ::cBmpFile1    = If( aBmpPal[ 7 ], nil, aBmpPal[ 6 ] )
      ::cResName1    = If( aBmpPal[ 7 ], aBmpPal[ 6 ], nil )
   endif

   if ! Empty( cSrc := IfNil( cResName2, cBmpFile2 ) )
      aBmpPal        = ::ReadPalBmpEx( cSrc,,::lGDIP )
      ::hBitmap2     = aBmpPal[ 1 ]
      ::hPalette2    = aBmpPal[ 2 ]
      ::aAlpha[ 2 ]  = aBmpPal[ 5 ]
      ::cBmpFile2    = If( aBmpPal[ 7 ], nil, aBmpPal[ 6 ] )
      ::cResName2    = If( aBmpPal[ 7 ], aBmpPal[ 6 ], nil )
   endif

   if ! Empty( cSrc := IfNil( cResName3, cBmpFile3 ) )
      aBmpPal        = ::ReadPalBmpEx( cSrc,,::lGDIP )
      ::hBitmap3     = aBmpPal[ 1 ]
      ::hPalette3    = aBmpPal[ 2 ]
      ::aAlpha[ 3 ]  = aBmpPal[ 5 ]
      ::cBmpFile3    = If( aBmpPal[ 7 ], nil, aBmpPal[ 6 ] )
      ::cResName3    = If( aBmpPal[ 7 ], aBmpPal[ 6 ], nil )
   endif

   if ! Empty( cSrc := IfNil( cResName4, cBmpFile4 ) )
      aBmpPal        = ::ReadPalBmpEx( cSrc,,::lGDIP )
      ::hBitmap4     = aBmpPal[ 1 ]
      ::hPalette4    = aBmpPal[ 2 ]
      ::aAlpha[ 4 ]  = aBmpPal[ 5 ]
      ::cBmpFile4    = If( aBmpPal[ 7 ], nil, aBmpPal[ 6 ] )
      ::cResName4    = If( aBmpPal[ 7 ], aBmpPal[ 6 ], nil )
   endif
*/



return nil
 


El error es aqui
::SetImages( IfNil( cResName1, cBmpFile1 ), IfNil( cResName2, cBmpFile2 ), ;
IfNil( cResName3, cBmpFile3 ), IfNil( cResName4, cBmpFile4 ), .f. )

no da todo el tiempo da trabajando 1 hora o 2 horas
Fivewin 16.11
Harbour 3.2.0
Visual Studio 2015 community
MariaDb/MySql

Ing. MSc. Luis Duque
http://www.accasoft.net
luisduque
 
Posts: 133
Joined: Mon May 12, 2008 4:13 pm
Location: Venezuela

Re: BtnBmp error en METHOD LoadBitmaps 15.06

Postby Maurizio » Fri Sep 02, 2016 7:10 am

Hello ,

It's an old unsolved problem ( I have a same problem ) , now I will try with the last fw version and if it is possible simulate with a sample .

viewtopic.php?f=3&t=16168&p=97501&hilit=GPF+MAURIZIO#p97501

viewtopic.php?f=6&t=18604&p=97481&hilit=gpf+BTNBMP#p97481

Maurizio
www.nipeservice.com
User avatar
Maurizio
 
Posts: 796
Joined: Mon Oct 10, 2005 1:29 pm

Re: BtnBmp error en METHOD LoadBitmaps 15.06

Postby Antonio Linares » Fri Sep 02, 2016 9:57 am

Luis,

Puede estar directamente relacionado con el problema de consumo de memoria que nos has comentado.

Obtén toda la información del administrador de tareas de la aplicación y publícala aquí, gracias
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: BtnBmp error en METHOD LoadBitmaps 15.06

Postby Antonio Linares » Fri Sep 02, 2016 10:03 am

Luis,

Has comprobado el consumo de objetos GDI de tu aplicación usando CheckRes() ?

http://wiki.fivetechsoft.com/doku.php?id=fivewin_function_checkres
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: BtnBmp error en METHOD LoadBitmaps 15.06

Postby luisduque » Sat Sep 03, 2016 12:35 am

Maestro Andonio

Error Completo

    Application Internal Error - C:\AccaSoft\AccaSoft.exe
    Terminated at: 2016-08-31 08:54:41
    Unrecoverable error 6005: Exception error:

    Exception Code:C0000005 ACCESS_VIOLATION
    Exception Address:00D7BF7D
    EAX:07AC5000 EBX:00000000 ECX:07AB8020 EDX:07AC5000
    ESI:00000000 EDI:0179172B EBP:0084E7A8
    CS:EIP:0023:00D7BF7D SS:ESP:002B:0084E7A4
    DS:002B ES:002B FS:0053 GS:002B
    Flags:00010206
    Exception Parameters: 00000000 07AC5008
    CS:EIP: 8B 48 08 3B 0D 24 A3 94 01 75 09 C7 45 FC 01 00
    SS:ESP: 07AB8020 0084E7D0 00D8DE9F 07AC5000 00001566 0084E7FC 00000000 07AB8020 76C4000C 86C31566 01791152 0084E7E8 00D7BFC4 03B40094 00D7BF70 00000000

    C stack:
    EIP: EBP: Frame: OldEBP, RetAddr, Params...
    00D7BF7D 0084E7A8 0084E7D0 00D8DE9F 07AC5000 00001566 0084E7FC 00000000 07AB8020 76C4000C 86C31566 01791152
    00D8DE9F 0084E7D0 0084E7E8 00D7BFC4 03B40094 00D7BF70 00000000 00001566
    00D7BFC4 0084E7E8 0084E810 00D7C055 0084E800 00000000 00000000 00000000 00780538 00000000 1B050D0D 00DF1A51
    00D7C055 0084E810 0084E824 00D7C129 00780538 1B050D0D 00000000
    00D7C129 0084E824 018DBCD8 00DFFD4D 0000010E 00000720 00A3A44C 00000000 00000000 00DFDD2D 00000003 0177A52C


    Modules:
    00D20000 00C66000 C:\AccaSoft\AccaSoft.exe
    773A0000 00157000 C:\Windows\SYSTEM32\ntdll.dll
    755D0000 00130000 C:\Windows\SYSTEM32\KERNEL32.DLL
    76C40000 000A6000 C:\Windows\SYSTEM32\KERNELBASE.dll
    76DD0000 00116000 C:\Windows\SYSTEM32\USER32.dll
    76B40000 000FD000 C:\Windows\SYSTEM32\GDI32.dll
    74300000 00060000 C:\Windows\SYSTEM32\WINSPOOL.DRV
    74BB0000 00087000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9200.16384_none_bf100cd445f4d954\COMCTL32.dll
    75740000 00089000 C:\Windows\SYSTEM32\COMDLG32.dll
    74EA0000 000AE000 C:\Windows\SYSTEM32\ADVAPI32.dll
    757D0000 010C5000 C:\Windows\SYSTEM32\SHELL32.dll
    771C0000 00119000 C:\Windows\SYSTEM32\ole32.dll
    76F90000 0008B000 C:\Windows\SYSTEM32\OLEAUT32.dll
    74510000 00022000 C:\Windows\SYSTEM32\IPHLPAPI.DLL
    748F0000 00008000 C:\Windows\SYSTEM32\VERSION.dll
    74150000 00008000 C:\Windows\SYSTEM32\WSOCK32.dll
    742F0000 00006000 C:\Windows\SYSTEM32\MSIMG32.dll
    742D0000 0001D000 C:\Windows\SYSTEM32\oledlg.dll
    75290000 00163000 C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.9200.16384_none_ba245425e0986353\gdiplus.dll
    76D10000 000B1000 C:\Windows\SYSTEM32\msvcrt.dll
    75700000 00040000 C:\Windows\SYSTEM32\SHLWAPI.dll
    754E0000 00034000 C:\Windows\SYSTEM32\sechost.dll
    76900000 000AC000 C:\Windows\SYSTEM32\RPCRT4.dll
    769B0000 00136000 C:\Windows\SYSTEM32\combase.dll
    74E70000 00008000 C:\Windows\SYSTEM32\NSI.dll
    744C0000 00008000 C:\Windows\SYSTEM32\WINNSI.DLL
    76AF0000 00050000 C:\Windows\SYSTEM32\WS2_32.dll
    74A40000 0001C000 C:\Windows\SYSTEM32\SspiCli.dll
    74900000 00075000 C:\Windows\SYSTEM32\SHCORE.DLL
    74A30000 00009000 C:\Windows\SYSTEM32\CRYPTBASE.dll
    749D0000 00051000 C:\Windows\SYSTEM32\bcryptPrimitives.dll
    74E80000 00020000 C:\Windows\system32\IMM32.DLL
    75400000 000DC000 C:\Windows\SYSTEM32\MSCTF.dll
    74240000 00088000 C:\Windows\system32\uxtheme.dll
    73660000 00069000 C:\Program Files (x86)\Common Files\microsoft shared\ink\tiptsf.dll
    74220000 00012000 C:\Windows\SYSTEM32\dhcpcsvc.DLL
    76EF0000 00074000 C:\Windows\SYSTEM32\clbcatq.dll
    74180000 000A0000 C:\Windows\SYSTEM32\sxs.dll
    744A0000 0001A000 C:\Windows\SYSTEM32\CRYPTSP.dll
    74460000 0003E000 C:\Windows\system32\rsaenh.dll
    737A0000 00031000 C:\Windows\system32\wbem\wbemdisp.dll
    73730000 00070000 C:\Windows\SYSTEM32\wbemcomn.dll
    73720000 0000B000 C:\Windows\system32\wbem\wbemprox.dll
    73700000 00019000 C:\Windows\system32\wbem\wmiutils.dll
    736F0000 00010000 C:\Windows\system32\wbem\wbemsvc.dll
    6BF50000 000C2000 C:\Windows\system32\wbem\fastprox.dll
    74160000 00019000 C:\Windows\SYSTEM32\dwmapi.dll
    73F80000 00050000 C:\Windows\SYSTEM32\oleacc.dll
    73E50000 0012C000 C:\Program Files (x86)\Common Files\System\ado\msado15.dll
    73E20000 00022000 C:\Windows\SYSTEM32\MSDART.DLL
    73BA0000 000EB000 C:\Program Files (x86)\Common Files\System\Ole DB\oledb32.dll
    74420000 0001A000 C:\Windows\SYSTEM32\bcrypt.dll
    73890000 00133000 C:\Windows\SYSTEM32\comsvcs.dll
    73D60000 0009A000 C:\Program Files (x86)\Common Files\System\Ole DB\msdasql.dll
    73D40000 0001C000 C:\Program Files (x86)\Common Files\System\Ole DB\MSDATL3.dll
    73FD0000 000A1000 C:\Windows\SYSTEM32\ODBC32.dll
    73B90000 0000F000 C:\Program Files (x86)\Common Files\System\Ole DB\MSDASQLR.DLL
    75100000 00188000 C:\Windows\SYSTEM32\CRYPT32.dll
    76CF0000 00012000 C:\Windows\SYSTEM32\MSASN1.dll
    73B40000 00007000 C:\Windows\SYSTEM32\DPAPI.DLL
    10000000 00242000 C:\Program Files (x86)\MySQL\Connector ODBC 5.1\myodbc5.dll
    74140000 00010000 C:\Windows\system32\napinsp.dll
    74120000 00014000 C:\Windows\system32\pnrpnsp.dll
    74110000 00010000 C:\Windows\system32\NLAapi.dll
    74980000 0004A000 C:\Windows\System32\mswsock.dll
    74090000 00075000 C:\Windows\SYSTEM32\DNSAPI.dll
    74080000 00009000 C:\Windows\System32\winrnr.dll
    73CD0000 00007000 C:\Windows\System32\rasadhlp.dll
    73C90000 0003F000 C:\Windows\System32\fwpuclnt.dll
    737F0000 00092000 C:\Program Files (x86)\Common Files\System\msadc\msadce.dll
    73B30000 00002000 C:\Program Files (x86)\Common Files\System\msadc\msadcer.dll
    05450000 0056A000 C:\AccaSoft\freeimage.dll
    73520000 00136000 C:\Windows\System32\Speech\Common\sapi.dll
    73D10000 00021000 C:\Windows\SYSTEM32\WINMM.dll
    73B10000 00014000 C:\Windows\SYSTEM32\MSACM32.dll
    73B00000 0000B000 C:\Windows\SYSTEM32\msdmo.dll
    73CE0000 0002A000 C:\Windows\SYSTEM32\WINMMBASE.dll
    734D0000 0004D000 C:\Windows\System32\MMDevApi.dll
    76F70000 0001E000 C:\Windows\SYSTEM32\DEVOBJ.dll
    74C60000 00046000 C:\Windows\SYSTEM32\cfgmgr32.dll
    733A0000 0012C000 C:\Program Files (x86)\Intel\iCLS Client\libeay32.dll
    04B30000 00012000 C:\AppServ\Apache2.2\bin\zlib1.dll
    73350000 0004F000 C:\Program Files (x86)\Intel\iCLS Client\ssleay32.dll
    73230000 00119000 C:\Windows\SYSTEM32\PROPSYS.dll
    743B0000 00011000 C:\Windows\SYSTEM32\profapi.dll
    74A60000 0011E000 C:\Windows\SYSTEM32\urlmon.dll
    77020000 0019B000 C:\Windows\SYSTEM32\iertutil.dll
    74CB0000 001B9000 C:\Windows\SYSTEM32\WININET.dll
    737E0000 00009000 C:\Windows\SYSTEM32\Secur32.dll
    74F50000 001AF000 C:\Windows\SYSTEM32\SETUPAPI.dll
    72FC0000 001F7000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.16384_none_893961408605e985\comctl32.DLL
    72E70000 00146000 C:\Windows\SYSTEM32\WindowsCodecs.dll
    72E30000 0003D000 C:\Windows\system32\Ninput.dll
    72E00000 0002C000 C:\Windows\system32\msdadiag.dll
    72D50000 000A7000 C:\Windows\SYSTEM32\apphelp.dll
    72CD0000 00080000 C:\Windows\system32\prnfldr.dll
    72C50000 0007C000 C:\Windows\SYSTEM32\mscms.dll
    736D0000 0001B000 C:\Windows\SYSTEM32\USERENV.dll
    19600000 0000F000 C:\Users\Kavalia\AppData\Local\Temp\TeamViewer\Version6\tv_w32.dll
    00CD0000 00027000 C:\Windows\SYSTEM32\CRTDLL.dll
    727D0000 00098000 C:\Windows\SYSTEM32\mswstr10.dll

    Called from PALBMPNEW(0)
    Called from WNDREADPALBMPEX(588) in .\source\function\IMGTXTIO.PRG
    Called from (b)TWINDOW(551) in .\source\classes\WINDOW.PRG
    Called from TBTNBMP:READPALBMPEX(0) in .\source\classes\WINDOW.PRG
    Called from TBTNBMP:SETIMAGES(1004) in .\source\classes\BTNBMP.PRG
    Called from TBTNBMP:LOADBITMAPS(1031) in .\source\classes\BTNBMP.PRG
    Called from MESAPV(17509) in Accafun.prg
    Called from (b)SELMESA(36948) in AccaSoft.prg
    Called from TDIALOG:INITIATE(706) in .\source\classes\DIALOG.PRG
    Called from TDIALOG:HANDLEEVENT(898) in .\source\classes\DIALOG.PRG
    Called from DIALOGBOXINDIRECT(0)
    Called from TDIALOG:ACTIVATE(296) in .\source\classes\DIALOG.PRG
    Called from SELMESA(36948) in AccaSoft.prg
    Called from VALMESACR(17336) in Accafun.prg
    Called from (b)PVENTACR(32329) in AccaSoft.prg
    Called from TBTNBMP:CLICK(658) in .\source\classes\BTNBMP.PRG
    Called from TBTNBMP:LBUTTONUP(894) in .\source\classes\BTNBMP.PRG
    Called from TBTNBMP:LBUTTONDOWN(832) in .\source\classes\BTNBMP.PRG
    Called from TCONTROL:HANDLEEVENT(1718) in .\source\classes\CONTROL.PRG
    Called from TBTNBMP:HANDLEEVENT(1834) in .\source\classes\BTNBMP.PRG
    Called from _FWH(3305) in .\source\classes\WINDOW.PRG
    Called from DIALOGBOXINDIRECT(0)
    Called from TDIALOG:ACTIVATE(296) in .\source\classes\DIALOG.PRG
    Called from PVENTACR(32737) in AccaSoft.prg
    Called from PVENTA(26524) in AccaSoft.prg
    Called from (b)PANTALLAINICIAL(2977) in AccaSoft.prg
    Called from TBTNBMP:CLICK(658) in .\source\classes\BTNBMP.PRG
    Called from TBTNBMP:LBUTTONUP(894) in .\source\classes\BTNBMP.PRG
    Called from TBTNBMP:LBUTTONDOWN(832) in .\source\classes\BTNBMP.PRG
    Called from TCONTROL:HANDLEEVENT(1718) in .\source\classes\CONTROL.PRG
    Called from TBTNBMP:HANDLEEVENT(1834) in .\source\classes\BTNBMP.PRG
    Called from _FWH(3305) in .\source\classes\WINDOW.PRG
    Called from DIALOGBOXINDIRECT(0)
    Called from TDIALOG:ACTIVATE(296) in .\source\classes\DIALOG.PRG
    Called from PANTALLAINICIAL(3050) in AccaSoft.prg
    Called from MAIN(2667) in AccaSoft.prg
    ------------------------------------------------------------------------


Eso se produce después de trabajar 1 hora ejemplo y sucede con la versión 16.06 con la versión 15.06 no da ese error voy a copiar la clase de la 15.06 y voy a probar sin embargo voy a probar una solución de Daniel Garcia

Code: Select all  Expand view

function PalBmpFree( hBmp, hPal )

   DeleteObject( hBmp )
   DeleteObject( hPal )

return nil
 


lo importante es tratar de ver si se puede resolver para la versión 16.07
Fivewin 16.11
Harbour 3.2.0
Visual Studio 2015 community
MariaDb/MySql

Ing. MSc. Luis Duque
http://www.accasoft.net
luisduque
 
Posts: 133
Joined: Mon May 12, 2008 4:13 pm
Location: Venezuela

Re: BtnBmp error en METHOD LoadBitmaps 15.06

Postby Antonio Linares » Sun Sep 04, 2016 10:30 am

Luis,

Prueba a crear una función "dummy" en tu PRG:

function PALBMPNEW()

return nil

y comprueba si asi desaparece el error, gracias
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: BtnBmp error en METHOD LoadBitmaps 15.06 (Resuelto)

Postby luisduque » Mon Sep 05, 2016 5:26 pm

Maestro Antonio

al crear la función "dummy" se resolviò el problema

function PALBMPNEW()

return nil


Muchas Gracias.
Fivewin 16.11
Harbour 3.2.0
Visual Studio 2015 community
MariaDb/MySql

Ing. MSc. Luis Duque
http://www.accasoft.net
luisduque
 
Posts: 133
Joined: Mon May 12, 2008 4:13 pm
Location: Venezuela

Re: BtnBmp error en METHOD LoadBitmaps 15.06

Postby Antonio Linares » Mon Sep 05, 2016 9:17 pm

Luis,

muy bien. Al menos ya tenemos una solución temporal

Vamos a revisar el código de PALBMPNEW()

gracias
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: BtnBmp error en METHOD LoadBitmaps 15.06

Postby Maurizio » Wed Sep 07, 2016 6:45 am

Antonio,
mine too

Maurizio
User avatar
Maurizio
 
Posts: 796
Joined: Mon Oct 10, 2005 1:29 pm

Re: BtnBmp error en METHOD LoadBitmaps 15.06

Postby Antonio Linares » Wed Sep 07, 2016 8:12 am

Maurizio,

Did it solved your problem too ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: BtnBmp error en METHOD LoadBitmaps 15.06

Postby Maurizio » Wed Sep 07, 2016 9:29 am

Yes
Maurizio
www.nipeservice.com
User avatar
Maurizio
 
Posts: 796
Joined: Mon Oct 10, 2005 1:29 pm

Re: BtnBmp error en METHOD LoadBitmaps 15.06

Postby Maurizio » Fri Sep 09, 2016 4:16 pm

Antonio ,
nothing new about function PALBMPNEW() ?

with MSVC to compile the function PALBMPNEW() I have to use
-ldflag=/FORCE:multiple
but I think the compiler takes that in the lib

Maurizio
User avatar
Maurizio
 
Posts: 796
Joined: Mon Oct 10, 2005 1:29 pm

Re: BtnBmp error en METHOD LoadBitmaps 15.06

Postby Antonio Linares » Fri Sep 09, 2016 8:32 pm

Maurizio,

It is fixed in FWH 16.08 to be published in a few days
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 92 guests