Sign in Join

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

Mailing lists / lazarus / 2008-10

BUG in Synedit

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Brad Campbell

Steps to reproduce :

Project -> New Project -> Application
Synedit Tab -> TSynEdit (1st icon) and click form to drop it on. Edit Lines property of TSynEdit to be empty.
Run application. Cursor should be flashing in Synedit box Hit enter.. Boom.

v0.9.27 r16831M i386-linux-gtk 2 (beta)

brad at bklaptop2:~$ fpc --version
Free Pascal Compiler version 2.2.3 [2008/10/01] for i386 Copyright (c) 1993-2008 by Florian Klaempfl

brad at bkmac:~$ /tmp/project1
TApplication.HandleException Invalid stringlist index 1 Stack trace:
$0828BD41 LISTINDEXOUTOFBOUNDS, line 506 of synedittextbuffer.pp $0828CE30 TSYNEDITSTRINGLIST__INSERT, line 892 of synedittextbuffer.pp $08279C90 TCUSTOMSYNEDIT__EXECUTECOMMAND, line 8471 of synedit.pp $08277B40 TCUSTOMSYNEDIT__COMMANDPROCESSOR, line 7494 of synedit.pp $0826C0AD TCUSTOMSYNEDIT__KEYDOWN, line 2272 of synedit.pp $08141F56 TWINCONTROL__KEYDOWNBEFOREINTERFACE, line 4981 of ./include/wincontrol.inc $08142275 TWINCONTROL__DOKEYDOWNBEFOREINTERFACE, line 5117 of ./include/wincontrol.inc $08143F17 TWINCONTROL__CNKEYDOWN, line 6200 of ./include/wincontrol.inc $08068EB9 TOBJECT__DISPATCH, line 459 of /home/brad/devel/fpc/svn/fixes/fpc/rtl/inc/objpas.inc $081416D4 TWINCONTROL__WNDPROC, line 4749 of ./include/wincontrol.inc $082767BE TCUSTOMSYNEDIT__WNDPROC, line 8471 of synedit.pp $08210867 DELIVERMESSAGE, line 3547 of /home/brad/devel/fpc/lazarus/lcl/interfaces/gtk/gtkproc.inc $0820DFE3 HANDLEGTKKEYUPDOWN, line 2264 of
/home/brad/devel/fpc/lazarus/lcl/interfaces/gtk/gtkproc.inc $081CE318 GTK2KEYDOWN, line 68 of gtk2widgetset.inc $B7C358D4
$B7A33759
$B7A47F8B

Regards,
Brad

Dolphins are so intelligent that within a few weeks they can train Americans to stand at the edge of the pool and throw them fish.

Reply by email

Martin Friebe
to Brad Campbell

can be reproduced in the IDE as well

File->new : then choose "text"

an empty synedit is created.
- inserting a space or char into the empty line works
- but if you press return, before inserting anything else,it will fail.

please create a bug report for it.

Brad Campbell wrote 39 lines
Steps to reproduce : Project -> New Project -> Application Synedit Tab -> TSynEdit (1st icon) and click form to drop it on. Edit Lines property of TSynEdit to be empty. Run application. Cursor should be flashing in Synedit box Hit enter.. Boom. v0.9.27 r16831M i386-linux-gtk 2 (beta) brad at bklaptop2:~$ fpc --version Free Pascal Compiler version 2.2.3 [2008/10/01] for i386 Copyright (c) 1993-2008 by Florian Klaempfl brad at bkmac:~$ /tmp/project1 TApplication.HandleException Invalid stringlist index 1 Stack trace: $0828BD41 LISTINDEXOUTOFBOUNDS, line 506 of synedittextbuffer.pp $0828CE30 TSYNEDITSTRINGLIST__INSERT, line 892 of synedittextbuffer.pp $08279C90 TCUSTOMSYNEDIT__EXECUTECOMMAND, line 8471 of synedit.pp $08277B40 TCUSTOMSYNEDIT__COMMANDPROCESSOR, line 7494 of synedit.pp $0826C0AD TCUSTOMSYNEDIT__KEYDOWN, line 2272 of synedit.pp $08141F56 TWINCONTROL__KEYDOWNBEFOREINTERFACE, line 4981 of ./include/wincontrol.inc $08142275 TWINCONTROL__DOKEYDOWNBEFOREINTERFACE, line 5117 of ./include/wincontrol.inc $08143F17 TWINCONTROL__CNKEYDOWN, line 6200 of ./include/wincontrol.inc $08068EB9 TOBJECT__DISPATCH, line 459 of /home/brad/devel/fpc/svn/fixes/fpc/rtl/inc/objpas.inc $081416D4 TWINCONTROL__WNDPROC, line 4749 of ./include/wincontrol.inc $082767BE TCUSTOMSYNEDIT__WNDPROC, line 8471 of synedit.pp $08210867 DELIVERMESSAGE, line 3547 of /home/brad/devel/fpc/lazarus/lcl/interfaces/gtk/gtkproc.inc $0820DFE3 HANDLEGTKKEYUPDOWN, line 2264 of /home/brad/devel/fpc/lazarus/lcl/interfaces/gtk/gtkproc.inc $081CE318 GTK2KEYDOWN, line 68 of gtk2widgetset.inc $B7C358D4 $B7A33759 $B7A47F8B Regards, Brad

Reply by email

Brad Campbell
to Martin Friebe
Martin Friebe wrote 9 lines
can be reproduced in the IDE as well File->new : then choose "text" an empty synedit is created. - inserting a space or char into the empty line works - but if you press return, before inserting anything else,it will fail. please create a bug report for it.

http://mantis.freepascal.org/view.php?id=12281

Done.

Regards,
Brad

Dolphins are so intelligent that within a few weeks they can train Americans to stand at the edge of the pool and throw them fish.

Reply by email