Corrupted JPG causes errors
Posted: Tue Jul 03, 2012 1:18 am
We have had a couple of issues where a single JPG that is in some way corrupted causes errors in our application.
Is there any way we can trap these before the error occurs and substitute the corrupted image with a good / blank one so the dcbrowse shows without errors?
The error log is below in case it helps..
Is there any way we can trap these before the error occurs and substitute the corrupted image with a good / blank one so the dcbrowse shows without errors?
The error log is below in case it helps..
Code: Select all
------------------------------------------------------------------------------
ERROR LOG of "C:\rba-share\rba\rba32.exe" Date: 03/07/2012 08:14:40
Xbase++ version:Xbase++ (R) Version 1.90.355
Operating system:Windows Server 2003 05.02 Build 03790 Service Pack 2
------------------------------------------------------------------------------
oError:args :-> VALTYPE: O - CLASS: XbpCellGroup
-> VALTYPE: N - VALUE: 9
-> VALTYPE: C - VALUE: C:\rba-share\rba\Live\products\GDN00112%2FA.jpg
-> VALTYPE: N - VALUE: 2
-> VALTYPE: L - VALUE: .F.
oError:canDefault :.F.
oError:canRetry :.F.
oError:canSubstitute:.T.
oError:cargo :NIL
oError:description : Parameter has a wrong data type
oError:filename :
oError:genCode :2
oError:operation ::SetCell
oError:osCode :0
oError:severity :2
oError:subCode :3
oError:subSystem :BASE
oError:thread :5
oError:tries :0
------------------------------------------------------------------------------
CURRENT DATABASE:
------------------------------------------------------------------------------
Alias(): NEWPLU Record: 168 Index: 1,NEWPLU1
------------------------------------------------------------------------------
CALLSTACK:
------------------------------------------------------------------------------
Called from (B)ERRORSYS(54)
Called from XBPCOLUMN:DRAWROW(678)
Called from DC_XBPCOLUMN:DRAWROW(2780)
Called from (B)XBPBROWSE:DRAWROW(2131)
Called from XBPBROWSE:DRAWROW(2131)
Called from XBPBROWSE:FORCESTABLE(1143)
Called from XBPBROWSE:HANDLEEVENT(1497)
Called from DC_XBPBROWSE:HANDLEEVENT(905)
Called from DC_GETLIST:EVENTLOOP(4449)
Called from DC_GETLIST:READGUI(3677)
Called from DC_READGUI(101)
Called from PLU_BROWSER(856)
Called from PLU_LOOKUP(13330)
Called from (B)CHECKOUT_SALES(2877)
Called from DC_XBPPUSHBUTTON:ACTION(2303)
Called from (B)DC_XBPPUSHBUTTON:INIT(1873)
Called from XBPPUSHBUTTON:HANDLEEVENT(964)
Called from DC_GETLIST:EVENTLOOP(4449)
Called from DC_GETLIST:READGUI(3677)
Called from DC_READGUI(101)
Called from CHECKOUT_SALES(4940)
Called from (B)XB_MENU(462)
Called from RUNFUNCTION(86)
Called from (B)RUN_PROCEDURE(73)
Express++ Version: eXPress++ (c) Version 1.9 Build 255