Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004411 [JEDI VCL] 00 JVCL Components major always 2008-07-29 00:20 2008-07-29 11:08
Reporter Patrick123 View Status public  
Assigned To obones
Priority normal Resolution fixed  
Status resolved   Product Version 3.33
Summary 0004411: TjvSimScope crashes with a divide by zero error.
Description The easiest way to reproduce this is to add a jvSimscope component to a form.
Set the property Active to true.
Add a jvScopeLine via the properties.
As soon as it is added you get the error. The only way out is to try and delete the scopeline during the interval or end Delphi via the task manager.
Additional Information This can be resolved by changing the following function from:

function TJvScopeLineValues.GetItem(Index: Integer): Integer;
begin
  Result := FValues[(Index + FZeroIndex) mod FCount];
end;

Change To:

function TJvScopeLineValues.GetItem(Index: Integer): Integer;
begin
  if FCount = 0 then
    Result := FValues[0]
  else
    Result := FValues[(Index + FZeroIndex) mod FCount];
end;

It is not a perfect fix as it leaves a gap in the scopeline, but it works.
Tags No tags attached.
Attached Files rar file icon SimScopeErr.rar [^] (6,371 bytes) 2008-07-29 01:53

- Relationships

-  Notes
(0014463)
obones (administrator)
2008-07-29 05:10

Seeing it with the SVN version and BDS2006
(0014465)
obones (administrator)
2008-07-29 11:07

This is now SVN.

- Issue History
Date Modified Username Field Change
2008-07-29 00:20 Patrick123 New Issue
2008-07-29 01:53 Patrick123 File Added: SimScopeErr.rar
2008-07-29 05:10 obones Note Added: 0014463
2008-07-29 05:10 obones Status new => confirmed
2008-07-29 11:07 obones Status confirmed => resolved
2008-07-29 11:07 obones Fixed in Version => Daily / SVN
2008-07-29 11:07 obones Resolution open => fixed
2008-07-29 11:07 obones Assigned To => obones
2008-07-29 11:07 obones Note Added: 0014465


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker