Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 105

Summary: Search function in Tee9New produces an error
Product: VCL TeeChart Reporter: narcís calvet <narcis>
Component: DemosAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: david, wave
Priority: Normal    
Version: 131016   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=14499&p=63863#p63863
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description narcís calvet 2013-11-18 04:38:32 EST
Searching a string in the "Search" tab in Tee9New throws the following error:

---------------------------
TeeChart Pro 2013 - What's New !
---------------------------
'' is not a valid integer value.
---------------------------
OK 
---------------------------
Comment 1 david berneda 2013-11-19 03:28:18 EST
Cannot reproduce. 
Which IDE & Search string are failing?
Comment 2 narcís calvet 2013-11-19 03:37:50 EST
Searching for "mark" in Tee9New built for XE4 or XE5, for example.
Comment 3 david berneda 2013-11-19 09:42:51 EST
Nope. No errors at my side.
Call stack will be helpful.

I guess some demo form is raising the exception when created.

The "Search" process involves creating all demo forms to obtain their description "Memo" control text, and search inside that text.
Comment 4 narcís calvet 2013-11-19 10:02:54 EST
Happens to me with current source control system demo and sources in Delphi 7. Crashes at TeeEditCha.pas, TChartEditForm.FormCreate, line:

  if TeeReadBoolOption(TeeMsg_SeriesGroups,False) then
     EditorOptions:=EditorOptions+[ceGroups];

Call stack:

TChartEditForm.FormCreate(???)
TChartEditorPanel.Create(???)
TChartEditorPanelForm.FormCreate(???)
FoundTextInNode($1F662B0)
DoSearchTree($1F3DF14,50)
TTeeNewForm.DoSearch
TTeeNewForm.CBSearchKeyDown(???,???,[])
Comment 5 david berneda 2013-11-29 09:43:13 EST
(In reply to narcís calvet from comment #4)
> Happens to me with current source control system demo and sources in Delphi
> 7. Crashes at TeeEditCha.pas, TChartEditForm.FormCreate, line:
> 
>   if TeeReadBoolOption(TeeMsg_SeriesGroups,False) then
>      EditorOptions:=EditorOptions+[ceGroups];
> 
> Call stack:
> 
> TChartEditForm.FormCreate(???)
> TChartEditorPanel.Create(???)
> TChartEditorPanelForm.FormCreate(???)
> FoundTextInNode($1F662B0)
> DoSearchTree($1F3DF14,50)
> TTeeNewForm.DoSearch
> TTeeNewForm.CBSearchKeyDown(???,???,[])

Usually when there is an exception, the debugger points to the line *after* it, which in this case the correct line is "ReadDefaultFont".

I found a possible fix although I can't reproduce the problem. 
Hope its resolved.