View Issue Details

IDProjectCategoryView StatusLast Update
0001006JEDI Code Library00 JVCL Componentspublic2005-02-16 01:34
ReporteranonymousAssigned Touser72 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionduplicate 
Product Version 
Target VersionFixed in Version 
Summary0001006: Division by 0 and runtime error 216
DescriptionUnit JclSysInfo.pas contains an error in line 2306 " Freq := Round(Cycles / Ticks);". The function GetCPUSpeed(var CpuSpeed: TFreqInfo): Boolean; is called whenever a program is started (initialization) and causes on fast PCs a division by zero because Ticks = 0 !! Because this function is automatically called during initalization of the units, the programs are terminated immediately by runtime error 216.
Additional InformationThe problem seems to be the same as Borland had it for Borland Pascal 7. The programs also terminated by a runtime error 216 on fast PCs (at that time). This time the Jedi unit JclSysInfo.pas causes the error on fast PCs.
My PC is a Intel P4 with 2.8 GHz and DDR-400 RAM. I used the newest JCL, JVCL and JCL Bug Fixes for the test.
TagsNo tags attached.
Fixed in GIT commit
Fixed in SVN revision
IDE version

Activities

Arioch

2003-06-24 05:26

reporter   ~0002251

read issue 0000981

Issue History

Date Modified Username Field Change
2005-02-16 01:34 Robert Rossmair Status resolved => closed