Page 1 of 1

Error in TaskPanel example

Posted: Fri Jan 29, 2010 10:59 am
by Wolfgang Ciriack
Hi Roger,
first live test. I get this error with my app and with your example.
Win7, XBase 1.9.355, eXPress 253.

------------------------------------------------------------------------------
ERROR LOG of "X:\express\XCodeJock\Samples\TaskPanel\TaskPanel.exe" Date: 01/29/2010 18:55:05

Xbase++ version : Xbase++ (R) Version 1.90.355
Operating system : Windows 7 06.01 Build 07600
------------------------------------------------------------------------------
oError:args :
-> VALTYPE: C VALUE: LoadIconFromResource
-> VALTYPE: N VALUE: 106102784
-> VALTYPE: N VALUE: 7371
-> VALTYPE: U VALUE: NIL
-> VALTYPE: N VALUE: 0
oError:canDefault : J
oError:canRetry : N
oError:canSubstitute: J
oError:cargo : NIL
oError:description : Typkonflikt.
Parameter hat falschen Typ
oError:filename : NIL
oError:genCode : NIL
oError:operation : LoadIconFromResource
oError:osCode : -2147352571
oError:severity : 2
oError:subCode : 6500
oError:subSystem : Automation
oError:thread : 1
oError:tries : NIL
------------------------------------------------------------------------------
CALLSTACK:
------------------------------------------------------------------------------

Called from CJ_PARTS:LOADICON(47)
Called from PANELGROUPS(163)
Called from (B)MAIN(147)
Called from DC_GETLIST:READGUI(3566)
Called from DC_READGUI(98)
Called from MAIN(147)

Re: Error in TaskPanel example

Posted: Fri Jan 29, 2010 11:37 am
by rdonnay
Something appears wrong in your installation.

I do not get any errors with this sample in build 253.

Your error log indicates that the error is on line 47 of XCJCLASS.PRG.
It is not possible for that kind of error to occur on that line of code: IF Valtype(cDll) == 'C'

The error is really occurring on line 54 of XCJCLASS.PRG based on the log info:
CJLoadIconFromResource ncImage HANDLE nHandle ID nID STATE xtpImageNormal PARENT oIcons

It could be that Xbase++ is reporting the wrong line or it could be that you are running an older version of XCODEJOCK.DLL.

You can help to debug this problem by putting the following debugging command in XCJCLASS.PRG just before line 54.

WTF ncImage, nHandle, nID, xtpImageNormal, oIcons PAUSE

Rebuild XCODJOCK.DLL by running BUILD19_SL1.BAT in \exp19\source\xcodejock.

Then tell me what info appears in the debug window.

Re: Error in TaskPanel example

Posted: Fri Jan 29, 2010 10:52 pm
by Wolfgang Ciriack
Hi Roger,
thanks, i will try this next week.

Re: Error in TaskPanel example

Posted: Fri Feb 05, 2010 8:31 am
by Wolfgang Ciriack
Hi Roger,
you was right, there was an older XcodeJock.dll in my path.
Sorry.