Random Strange Error

This forum is for eXpress++ general support.
Post Reply
Message
Author
bobvolz
Posts: 114
Joined: Sun Jan 31, 2010 11:25 am

Random Strange Error

#1 Post by bobvolz »

Has anyone seen this error on their systems. We get it several times a week randomly in several functions including xdot. It has happened on both Windows
7 and 10 machines. I cannot reproduce it and it does not log into my error tracker. This is all I get.
Roger Donnay has tried a few fixes to dclipx but it has not yet worked. Could it be a system memory issue?

Any input would be appreciated.

Thanks, Bob Volz

ERROR LOG of "C:\AUTOMANAds\AutoManAcctAds.exe" Date: 07/22/20 13:36:25

Xbase++ version : Xbase++ (R) Version 2.00.992
Operating system : Windows 7 06.01 Build 07601 Service Pack 1
------------------------------------------------------------------------------
oError:args :
-> VALTYPE: O CLASS: DC_XbpMenuBar
-> VALTYPE: N VALUE: 14
oError:canDefault : N
oError:canRetry : N
oError:canSubstitute: Y
oError:cargo : NIL
oError:description : Error in array index
oError:filename :
oError:genCode : 4
oError:operation : :getItem
oError:osCode : 0
oError:severity : 2
oError:subCode : 1012
oError:subSystem : BASE
oError:thread : 2
oError:tries : 0
------------------------------------------------------------------------------
CALLSTACK:
------------------------------------------------------------------------------
(EVM Event Dispatcher)
Called from DRAWMENUBARITEM(5058)
Called from (B)DC_XBPMENUBAR:CREATE(4897)

User avatar
Auge_Ohr
Posts: 1406
Joined: Wed Feb 24, 2010 3:44 pm

Re: Random Strange Error

#2 Post by Auge_Ohr »

hi,

are you running a Thread :?:
normal Menu ist just in Main but you seems to have a Menu in Thread 2 :o
greetings by OHR
Jimmy

bobvolz
Posts: 114
Joined: Sun Jan 31, 2010 11:25 am

Re: Random Strange Error

#3 Post by bobvolz »

Hi Jimmy; Most if not all of my functions are called off the main menu as new threads. But you may be on to something because all I ever use in these new threads would be Tool Bars not Menu Bars. I'm going to dig a bit deeper to see where I might use a menu bar.
Thanks for the input.

Bob Volz

User avatar
rdonnay
Site Admin
Posts: 4728
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Random Strange Error

#4 Post by rdonnay »

I made a change to the DC_XbpMenuBar class to try to trap those errors.

Code: Select all

At line 5047 of _dcclass.prg, I changed this:

STATIC FUNCTION DrawMenubarItem( oDlg, oMbar, oPS, aInfo, oFont, oBitmap )

LOCAL aItem   := oMbar:getItem( aInfo[1] )
LOCAL aSAttrs := Array( GRA_AS_COUNT )
LOCAL aAAttrs := Array( GRA_AA_COUNT)
LOCAL cStr, xItem, i, nY, nLen

to this:

STATIC FUNCTION DrawMenubarItem( oDlg, oMbar, oPS, aInfo, oFont, oBitmap )

LOCAL aItem
LOCAL aSAttrs := Array( GRA_AS_COUNT )
LOCAL aAAttrs := Array( GRA_AA_COUNT)
LOCAL cStr, xItem, i, nY, nLen

IF Empty(aInfo)
  RETURN .f.
ENDIF

aItem   := oMbar:getItem( aInfo[1] )
I gave you an updated DCLIPX.DLL.
Didn't that fix the problem?
If not, then please give me your latest xpperror.log.
The eXpress train is coming - and it has more cars.

Post Reply