tcbrowse bug with fwh9.10

tcbrowse bug with fwh9.10

Postby Marco Turco » Fri Nov 13, 2009 12:51 pm

Hi,
there is a bug in tcbrowse with this last fwh released (the FWH june release hasn't this problem).

A self contained sample that show the problem is available at www.softwarexp.co.uk/beta/browse.zip

Go to the last browse row then pressing the mouse button try to go up and the following error will appairs.


Application
===========
Path and name: K:\TESTXBRW\SEND4\BRW.EXE (32 bits)
Size: 1,853,952 bytes
Time from start: 0 hours 0 mins 3 secs
Error occurred at: 11/13/09, 13:09:49
Error description: Error BASE/1132 Bound error: array access
Args:
[ 1] = A { ... }
[ 2] = N 11

Stack Calls
===========
Called from: K:\TESTXBRW\TESTXBR5.PRG => (b)MAIN(21)
Called from: .\source\classes\TCBROWSE.PRG => TCBROWSE:DRAWSELECT(478)
Called from: .\source\classes\WBROWSE.PRG => (b)TWBROWSE:TWBROWSE(193)
Called from: => TWBROWSE:LOSTFOCUS(0)
Called from: .\source\classes\TCBROWSE.PRG => (b)TCBROWSE:TCBROWSE(67)
Called from: => TCBROWSE:LOSTFOCUS(0)
Called from: .\source\classes\CONTROL.PRG => TCBROWSE:KILLFOCUS(882)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1436)
Called from: .\source\classes\WBROWSE.PRG => TCBROWSE:HANDLEEVENT(1648)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => DIALOGBOXINDIRECT(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273)
Called from: .\source\function\ERRSYSW.PRG => ERRORDIALOG(343)
Called from: .\source\function\ERRSYSW.PRG => (b)ERRORSYS(27)
Called from: K:\TESTXBRW\TESTXBR5.PRG => (b)MAIN(21)
Called from: .\source\classes\TCBROWSE.PRG => TCBROWSE:DRAWLINE(429)
Called from: .\source\classes\TCBROWSE.PRG => TCBROWSE:GODOWN(1080)
Called from: .\source\classes\WBROWSE.PRG => TWBROWSE:MOUSEMOVE(2064)
Called from: .\source\classes\TCBROWSE.PRG => TCBROWSE:MOUSEMOVE(738)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1469)
Called from: .\source\classes\WBROWSE.PRG => TCBROWSE:HANDLEEVENT(1648)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => DIALOGBOXINDIRECT(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273)
Called from: K:\TESTXBRW\TESTXBR5.PRG => MAIN(26)

System
======
CPU type: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz 2000 Mhz
Hardware memory: 256 megs

Free System resources: 90 %
GDI resources: 90 %
User resources: 90 %

Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6406)
Windows version: 4.0, Build 950

Windows total applications running: 86
1 MSCTFIME UI
2 Default IME
3 CiceroUIWndFrame
4 Start
5 xMate - K:\TESTXBRW\brw.xhp
6 Marco Turco
7 Menu Start
8 Passaggio da un programma all'altro
9 OnScreen Display Window
10 Icona di sistema rete
11 SysFader
12 CL RC Engine3 Dummy Winidow
13 TF_FloatingLangBar_WndTitle
14 FiveWin for Harbour
15 START2
16 syntax
17 Editor [K:\TESTXBRW\TESTXBR5.PRG]
18 ERROR - Blocco note
19 Acer Empowering Technology
20 FPLaunch
21 Fplaunch
22 TouchPad object helper window
23 Acrobat IEHelper
24 AcroStubUnloadWClass
25 DDE Server Window
26 Windows Internet Explorer
27 Debug window K:\TESTXBRW\brw.Exe (0 errors, 0 warnings)
28 Skype™ [8] - softwarexp
29 JavaUpdate SysTray Icon
30 MCI command handling window
31 VCL ImplGetDefaultWindow
32 PCSuite
33 MMDEVAPI Device Window
34 DeviceManager
35 TrayIconManager
36 Actions
37 SkyLibEx
38 C:\Users\Marco Turco\AppData\Roaming\Skype
39 amUI
40 Product Message
41 ESET NOD32 Antivirus
42 eRecoveryAgent
43 EndSessionHandling
44 CDirectoryChangeWatcherHelperWindow
45 eDSLoader
46 VOIP080 USBPhone
47 SidebarBroadcastWatcher
48 About GemSafe RegTool.
49 Realtek HD Audio CPL for Vista
50 HiddenFaxWindow
51 BluetoothNotificationAreaIconWindowClass
52 Canon My Printer
53 Servizio di condivisione in rete Windows Media Player
54 HkWndName
55 PersistWndName
56 DritekECWnd
57 IAAMonitor Notify App
58 igfxtrayWindow
59 IgfxExt_Wnd_Name
60 MS_WebcheckMonitor
61 Launch Manager
62 Misuratore alimentazione
63 Touchpad driver tray icon window
64 Touchpad driver backward compatibility window
65 Touchpad driver helper window
66 TaskEng - Processo del modulo di gestione dell'Utilità di pianificazione
67 DWM Notification Window
68 GDI+ Window
69 BTTrayMainWindow
70 Windows Defender
71 Nokia PC Suite
72 Form2
73 {878390AD-434B-41EE-9110-49B69E4398F9}
74 Gestione Extra di Skype™
75 {A3533AC8-A133-43D6-A112-361167D254CC}
76 .NET-BroadcastEventWindow.2.0.0.0.378734a.0
77 Acer eNet Management - eNMTray
78 .NET-BroadcastEventWindow.2.0.0.0.33c0d9d.0
79 .NET-BroadcastEventWindow.2.0.0.0.11ecf05.0
80 Presentazione
81 AppBar Bullet
82 Calendario
83 Windows Sidebar
84 Senza nome - Blocco note
85 ePower_DMC
86 Program Manager

Variables in use
================
Procedure Type Value
==========================
(b)MAIN
Local 1: U
Local 2: A Len: 2
Local 3: N 11
Local 4: U
Local 5: U
TCBROWSE:DRAWSELECT
Local 1: O Class: TCBROWSE
Local 2: N 1
Local 3: N 1
Local 4: N 1
Local 5: N 0
Local 6: O Class: TCCOLUMN
Local 7: N 2
Local 8: U
Local 9: U
Local 10: U
Local 11: U
Local 12: U
Local 13: U
Local 14: U
Local 15: U
Local 16: N 200
Local 17: N 11
Local 18: A Len: 2
Local 19: A Len: 2
Local 20: N 352981761
Local 21: N 987752
Local 22: U
Local 23: L .F.
Local 24: N 16777215
Local 25: N 16750899
(b)TWBROWSE:TWBROWSE
Param 1: O Class: TCBROWSE
Param 2: N 791098
TWBROWSE:LOSTFOCUS
Param 1: N 791098
(b)TCBROWSE:TCBROWSE
Param 1: O Class: TCBROWSE
Param 2: N 791098
TCBROWSE:LOSTFOCUS
Param 1: N 791098
TCBROWSE:KILLFOCUS
Param 1: N 791098
Local 1: O Class: TCBROWSE
Local 2: U
TCONTROL:HANDLEEVENT
Param 1: N 8
Param 2: N 791098
Param 3: N 0
Local 1: O Class: TCBROWSE
Local 2: U
TCBROWSE:HANDLEEVENT
Param 1: N 8
Param 2: N 791098
Param 3: N 0
Local 1: O Class: TCBROWSE
_FWH
Param 1: N 0
Param 2: N 8
Param 3: N 791098
Param 4: N 0
Param 5: N 1
Local 1: O Class: TCBROWSE
DIALOGBOXINDIRECT
Param 1: N 4194304
Param 2: C "€ È€ 
ÿqÿâ — F i v e W i n f o r H a r b o u r  P 4  u  f S T A T I C E r r o r d e s c r i p t i o n : E r r o r B A S E / 1 1 3 2 B o u n d e r r o r : a r r a y a c c e s s

P   H  g S T A T I C & S t a c k L i s t  ¡P  ! Ü v h L I S T B O X  P ` ‰  i B U T T O N & Q u i t P ¯  / j B U T T O N S e e E r r o r . l o g f i l e "
Param 3: N 594704
Param 4: O Class: TDIALOG
TDIALOG:ACTIVATE
Param 1: U
Param 2: U
Param 3: B {|| ... }
Param 4: L .T.
Param 5: U
Param 6: L .T.
Param 7: U
Param 8: U
Param 9: U
Param 10: L .F.
Local 1: O Class: TDIALOG
Local 2: N 594704
Local 3: U
Local 4: U
Local 5: U
Local 6: O Class: TDIALOG
ERRORDIALOG
Param 1: O Class: ERROR
Local 1: O Class: TDIALOG
Local 2: O Class: TLISTBOX
Local 3: U
Local 4: U
Local 5: C " Called from: K:\TESTXBRW\TESTXBR5.PRG => (b)MAIN(21)"
Local 6: N 4
Local 7: C " Error description: Error BASE/1132 Bound error: array access
"
Local 8: A Len: 12
Local 9: O Class: TSAY
Local 10: N 1845829415
Local 11: N 1
Local 12: C "Application
===========
Path and name: K:\TESTXBRW\SEND4\BRW.EXE (32 bits)
Size: 1,853,952 bytes
Time from start: 0 hours 0 mins 3 secs
Error occurred at: 11/13/09, 13:09:49
Error description: Error BASE/1132 Bound error: array access
Args:
[ 1] = A { ... }
[ 2] = N 11

Stack Calls
===========
Called from: K:\TESTXBRW\TESTXBR5.PRG => (b)MAIN(21)
Called from: .\source\classes\TCBROWSE.PRG => TCBROWSE:DRAWLINE(429)
Called from: .\source\classes\TCBROWSE.PRG => TCBROWSE:GODOWN(1080)
Called from: .\source\classes\WBROWSE.PRG => TWBROWSE:MOUSEMOVE(2064)
Called from: .\source\classes\TCBROWSE.PRG => TCBROWSE:MOUSEMOVE(738)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1469)
Called from: .\source\classes\WBROWSE.PRG => TCBROWSE:HANDLEEVENT(1648)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => DIALOGBOXINDIRECT(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273)
Called from: K:\TESTXBRW\TESTXBR5.PRG => MAIN(26)

System
======
CPU type: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz 2000 Mhz
Hardware memory: 256 megs

Free System resources: 90 %
GDI resources: 90 %
User resources: 90 %

Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6406)
Windows version: 4.0, Build 950

Windows total applications running: 85
1 MSCTFIME UI
2 Default IME
3 CiceroUIWndFrame
4 Start
5 xMate - K:\TESTXBRW\brw.xhp
6 Marco Turco
7 Menu Start
8 Passaggio da un programma all'altro
9 OnScreen Display Window
10 Icona di sistema rete
11 SysFader
12 CL RC Engine3 Dummy Winidow
13 TF_FloatingLangBar_WndTitle
14 START2
15 syntax
16 Editor [K:\TESTXBRW\TESTXBR5.PRG]
17 ERROR - Blocco note
18 Acer Empowering Technology
19 FPLaunch
20 Fplaunch
21 TouchPad object helper window
22 Acrobat IEHelper
23 AcroStubUnloadWClass
24 DDE Server Window
25 Windows Internet Explorer
26 Debug window K:\TESTXBRW\brw.Exe (0 errors, 0 warnings)
27 Skype™ [8] - softwarexp
28 JavaUpdate SysTray Icon
29 MCI command handling window
30 VCL ImplGetDefaultWindow
31 PCSuite
32 MMDEVAPI Device Window
33 DeviceManager
34 TrayIconManager
35 Actions
36 SkyLibEx
37 C:\Users\Marco Turco\AppData\Roaming\Skype
38 amUI
39 Product Message
40 ESET NOD32 Antivirus
41 eRecoveryAgent
42 EndSessionHandling
43 CDirectoryChangeWatcherHelperWindow
44 eDSLoader
45 VOIP080 USBPhone
46 SidebarBroadcastWatcher
47 About GemSafe RegTool.
48 Realtek HD Audio CPL for Vista
49 HiddenFaxWindow
50 BluetoothNotificationAreaIconWindowClass
51 Canon My Printer
52 Servizio di condivisione in rete Windows Media Player
53 HkWndName
54 PersistWndName
55 DritekECWnd
56 IAAMonitor Notify App
57 igfxtrayWindow
58 IgfxExt_Wnd_Name
59 MS_WebcheckMonitor
60 Launch Manager
61 Misuratore alimentazione
62 Touchpad driver tray icon window
63 Touchpad driver backward compatibility window
64 Touchpad driver helper window
65 TaskEng - Processo del modulo di gestione dell'Utilità di pianificazione
66 DWM Notification Window
67 GDI+ Window
68 BTTrayMainWindow
69 Windows Defender
70 Nokia PC Suite
71 Form2
72 {878390AD-434B-41EE-9110-49B69E4398F9}
73 Gestione Extra di Skype™
74 {A3533AC8-A133-43D6-A112-361167D254CC}
75 .NET-BroadcastEventWindow.2.0.0.0.378734a.0
76 Acer eNet Management - eNMTray
77 .NET-BroadcastEventWindow.2.0.0.0.33c0d9d.0
78 .NET-BroadcastEventWindow.2.0.0.0.11ecf05.0
79 Presentazione
80 AppBar Bullet
81 Calendario
82 Windows Sidebar
83 Senza nome - Blocco note
84 ePower_DMC
85 Program Manager

Variables in use
================
Procedure Type Value
==========================
(b)MAIN
Local 1: U
Local 2: A Len: 2
Local 3: N 11
Local 4: U
Local 5: U
TCBROWSE:DRAWLINE
Local 1: U
Local 2: O Class: TCBROWSE
Local 3: N 1
Local 4: N 1
Local 5: N 1
Local 6: N 0
Local 7: O Class: TCCOLUMN
Local 8: L .F.
Local 9: U
Local 10: N 0
Local 11: U
Local 12: N 16777215
Local 13: U
Local 14: N 200
Local 15: N 11
Local 16: A Len: 2
Local 17: N 2
Local 18: A Len: 2
Local 19: N 352981761
Local 20: N 987752
Local 21: U
Local 22: U
Local 23: U
Local 24: N 987752
Local 25: U
Local 26: N 11
Local 27: N 0
Local 28: N 30.00
Local 29: U
Local 30: U
TCBROWSE:GODOWN
Local 1: O Class: TCBROWSE
Local 2: U
Local 3: N 11
TWBROWSE:MOUSEMOVE
Param 1: N 27
Param 2: N 69
Param 3: N 1
Local 1: O Class: TCBROWSE
Local 2: N 0
Local 3: N 1
Local 4: N 0
Local 5: N 2
Local 6: U
Local 7: N 1
TCBROWSE:MOUSEMOVE
Param 1: N 27
Param 2: N 69
Param 3: N 1
Local 1: O Class: TCBROWSE
Local 2: U
Local 3: N 0
Local 4: L .F.
Local 5: L .T.
Local 6: L .F.
Local 7: U
TWINDOW:HANDLEEVENT
Param 1: N 512
Param 2: N 1
Param 3: N 1769541
TCONTROL:HANDLEEVENT
Param 1: N 512
Param 2: N 1
Param 3: N 1769541
Local 1: O Class: TCBROWSE
Local 2: U
TCBROWSE:HANDLEEVENT
Param 1: N 512
Param 2: N 1
Param 3: N 1769541
Local 1: O Class: TCBROWSE
_FWH
Param 1: N 1769541
Param 2: N 512
Param 3: N 1
Param 4: N 1769541
Param 5: N 1
Local 1: O Class: TCBROWSE
DIALOGBOXINDIRECT
Param 1: N 4194304
Param 2: C "€ È€  — e ±P d d e T C B R O W S E "
Param 3: N 0
Param 4: O Class: TDIALOG
TDIALOG:ACTIVATE
Param 1: U
Param 2: U
Param 3: U
Param 4: L .T.
Param 5: U
Param 6: L .T.
Param 7: U
Param 8: U
Param 9: U
Param 10: L .T.
Local 1: O Class: TDIALOG
Local 2: N 0
Local 3: U
Local 4: U
Local 5: U
Local 6: O Class: TDIALOG
MAIN
Local 1: O Class: TDIALOG
Local 2: O Class: TCBROWSE
Local 3: A Len: 2

Linked RDDs
===========
DBF
DBFFPT
DBFBLOB
DBFNTX

DataBases in use
================

Classes in use:
===============
1 ERROR
2 HASHENTRY
3 HBCLASS
4 HBOBJECT
5 TWINDOW
6 TDIALOG
7 TBRUSH
8 TCONTROL
9 TWBROWSE
10 TCBROWSE
11 TCCOLUMN
12 TFONT
13 TSCROLLBAR
14 TREG32

Memory Analysis
===============
177 Static variables

Dynamic memory consume:
Actual Value: 0 bytes
Highest Value: 0 bytes
"
Local 13: A Len: 5
Local 14: A Len: 85
Local 15: A Len: 4
Local 16: U
Local 17: U
Local 18: B {|| ... }
Local 19: U
Local 20: L .F.
(b)ERRORSYS
Param 1: O Class: ERROR
(b)MAIN
Local 1: U
Local 2: A Len: 2
Local 3: N 11
Local 4: U
Local 5: U
TCBROWSE:DRAWLINE
Local 1: U
Local 2: O Class: TCBROWSE
Local 3: N 1
Local 4: N 1
Local 5: N 1
Local 6: N 0
Local 7: O Class: TCCOLUMN
Local 8: L .F.
Local 9: U
Local 10: N 0
Local 11: U
Local 12: N 16777215
Local 13: U
Local 14: N 200
Local 15: N 11
Local 16: A Len: 2
Local 17: N 2
Local 18: A Len: 2
Local 19: N 352981761
Local 20: N 987752
Local 21: U
Local 22: U
Local 23: U
Local 24: N 987752
Local 25: U
Local 26: N 11
Local 27: N 0
Local 28: N 30.00
Local 29: U
Local 30: U
TCBROWSE:GODOWN
Local 1: O Class: TCBROWSE
Local 2: U
Local 3: N 11
TWBROWSE:MOUSEMOVE
Param 1: N 27
Param 2: N 69
Param 3: N 1
Local 1: O Class: TCBROWSE
Local 2: N 0
Local 3: N 1
Local 4: N 0
Local 5: N 2
Local 6: U
Local 7: N 1
TCBROWSE:MOUSEMOVE
Param 1: N 27
Param 2: N 69
Param 3: N 1
Local 1: O Class: TCBROWSE
Local 2: U
Local 3: N 0
Local 4: L .F.
Local 5: L .T.
Local 6: L .F.
Local 7: U
TWINDOW:HANDLEEVENT
Param 1: N 512
Param 2: N 1
Param 3: N 1769541
TCONTROL:HANDLEEVENT
Param 1: N 512
Param 2: N 1
Param 3: N 1769541
Local 1: O Class: TCBROWSE
Local 2: U
TCBROWSE:HANDLEEVENT
Param 1: N 512
Param 2: N 1
Param 3: N 1769541
Local 1: O Class: TCBROWSE
_FWH
Param 1: N 1769541
Param 2: N 512
Param 3: N 1
Param 4: N 1769541
Param 5: N 1
Local 1: O Class: TCBROWSE
DIALOGBOXINDIRECT
Param 1: N 4194304
Param 2: C "€ È€  — e ±P d d e T C B R O W S E "
Param 3: N 0
Param 4: O Class: TDIALOG
TDIALOG:ACTIVATE
Param 1: U
Param 2: U
Param 3: U
Param 4: L .T.
Param 5: U
Param 6: L .T.
Param 7: U
Param 8: U
Param 9: U
Param 10: L .T.
Local 1: O Class: TDIALOG
Local 2: N 0
Local 3: U
Local 4: U
Local 5: U
Local 6: O Class: TDIALOG
MAIN
Local 1: O Class: TDIALOG
Local 2: O Class: TCBROWSE
Local 3: A Len: 2

Linked RDDs
===========
DBF
DBFFPT
DBFBLOB
DBFNTX

DataBases in use
================

Classes in use:
===============
1 ERROR
2 HASHENTRY
3 HBCLASS
4 HBOBJECT
5 TWINDOW
6 TDIALOG
7 TBRUSH
8 TCONTROL
9 TWBROWSE
10 TCBROWSE
11 TCCOLUMN
12 TFONT
13 TSCROLLBAR
14 TREG32
15 TSAY
16 TLISTBOX
17 TBUTTON

Memory Analysis
===============
177 Static variables

Dynamic memory consume:
Actual Value: 0 bytes
Highest Value: 0 bytes

Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: tcbrowse bug with fwh9.10

Postby Antonio Linares » Sat Nov 14, 2009 9:15 am

Marco,

It seems as a side effect of the Kinetic scrolling implementation.

As a quick workaround to solve it, you can do:
Code: Select all  Expand view  RUN

    @0,0 BROWSE oBrw OF oDlg
    oBrw:lKinetic = .F.
 

In the meantime we are looking for a real solution, thanks
regards, saludos

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

Re: tcbrowse bug with fwh9.10

Postby Antonio Linares » Sat Nov 14, 2009 9:23 am

Marco,

This seems as a better fix, so there is no need to disable the kinetic.

Class TCBrowse Line 418, juts before the call to TCDrawCell():
Code: Select all  Expand view  RUN

        if ::aArray != nil
           ::nAt = Min( ::nAt, Len( ::aArray ) )
        endif
           
        TCDrawCell( hWnd, hDC , ;
        ...
 
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

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