Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-12

New Bug Entered - Arithmetic overflow

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

James Mills
to Unknown author: Title: Arithmetic overflow Entered by: James Mills When you try to scroll (using a scroll…
Mattias Gaertner wrote 20 lines
On Sat, 27 Dec 2003 07:38:17 -0500 (EST) wrote: > > Title: Arithmetic overflow > > Entered by: James Mills > > When you try to scroll (using a scroll mouse) in a listbox without the > listbox being selected, an Arithmetic overflow occurs forcing Lazarus to > be killed. > > This happens in: > Environment -> Editor Options -> Key Mappings This is a TTreeView, not a TListBox. I'm not able to reproduce the error. But that there is a (fpc) bug with floats, which results in exceptions in the scroll routine. I don't know, why only there. The code itself seems to be ok.

Try the following (with a scroll mouse):

1: Click Environment
2: Click Editor Options
3: Click Key Mappings
4: Scroll with the mouse

I think there's a problem in the code somewhere when it recieves a scroll event without the TTreeView component being selected first.

cheers
James

-Zero Defect Software Engineers Group - ZDSEG - -Web: http://www.shortcircuit.net.au/ -Wiki: http://wiki.shortcircuit.net.au/ -ICQ: 98888663 - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn't, use the tape.

Reply by email

Unknown author

Title: Arithmetic overflow

Entered by: James Mills

When you try to scroll (using a scroll mouse) in a listbox without the listbox being selected, an Arithmetic overflow occurs forcing Lazarus to be killed.

This happens in:
Environment -> Editor Options -> Key Mappings

cheers
James

Reply by email

Mattias Gaertner
to Unknown author
Show quoted text 28 lines
On Sat, Dec 27, 2003 at 02:26:07PM +0100, Mattias Gaertner wrote: > On Sat, 27 Dec 2003 07:38:17 -0500 (EST) wrote: > > > > > Title: Arithmetic overflow > > > > Entered by: James Mills > > > > When you try to scroll (using a scroll mouse) in a listbox without the > > listbox being selected, an Arithmetic overflow occurs forcing Lazarus > > to be killed. > > > > This happens in: > > Environment -> Editor Options -> Key Mappings > > This is a TTreeView, not a TListBox. > > I'm not able to reproduce the error. > But that there is a (fpc) bug with floats, which results in exceptions > in the scroll routine. I don't know, why only there. The code itself > seems to be ok. Try the following (with a scroll mouse): 1: Click Environment 2: Click Editor Options 3: Click Key Mappings 4: Scroll with the mouse

Tried again, no effect.
Start lazarus with gdb, set breakpoint at FPC_RAISEEXCEPTION and reproduce the error. If the line is gtkwinapi.inc 7776, then this is our old friend. If not, then please send the whole backtrace.

Mattias

Show quoted text 21 lines
I think there's a problem in the code somewhere when it recieves a scroll event without the TTreeView component being selected first. cheers James -- -Zero Defect Software Engineers Group - ZDSEG - -Web: http://www.shortcircuit.net.au/ -Wiki: http://wiki.shortcircuit.net.au/ -ICQ: 98888663 - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn't, use the tape. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Mattias Gaertner
to Unknown author: Title: Arithmetic overflow Entered by: James Mills When you try to scroll (using a scroll…
Show quoted text 11 lines
Title: Arithmetic overflow Entered by: James Mills When you try to scroll (using a scroll mouse) in a listbox without the listbox being selected, an Arithmetic overflow occurs forcing Lazarus to be killed. This happens in: Environment -> Editor Options -> Key Mappings

This is a TTreeView, not a TListBox.

I'm not able to reproduce the error.
But that there is a (fpc) bug with floats, which results in exceptions in the scroll routine. I don't know, why only there. The code itself seems to be ok.

Mattias

Reply by email

Ken Moffat
to Unknown author: Title: Arithmetic overflow Entered by: James Mills When you try to scroll (using a scroll…
James Mills wrote 32 lines
On Sat, Dec 27, 2003 at 02:26:07PM +0100, Mattias Gaertner wrote: >On Sat, 27 Dec 2003 07:38:17 -0500 (EST) wrote: > > > >>Title: Arithmetic overflow >> >>Entered by: James Mills >> >>When you try to scroll (using a scroll mouse) in a listbox without the >>listbox being selected, an Arithmetic overflow occurs forcing Lazarus to >>be killed. >> >> Try the following (with a scroll mouse): 1: Click Environment 2: Click Editor Options 3: Click Key Mappings 4: Scroll with the mouse I think there's a problem in the code somewhere when it recieves a scroll event without the TTreeView component being selected first. cheers James

Free Pascal Compiler version 1.0.11 [2003/10/22] and Lazarus CVS does not show this error. The scrolling is extremely slow when using the up/down arrows, but no crash. Mouse wheel works fine. Dragging scrollbar works fine.

Ken

Reply by email