TreeMap - Issue with Large Numbers of Directories...
Posted: Tue Jun 08, 2010 1:30 am
Hello,
I have been having a problem with an error while loading the TreeMap Series. It has taken me a number of hours to track down - as the error message does not give a line number using EurekaLog.
Basically - I have directory sizing utility - and I have implemented the TreeMap as another way of looking at the disk space.
The problem I am running into - is when I try to load large numbers of directories...
I get the error...
Type: EInvalidOp
Message: Invalid floating point operation.
and the call stack is not much more helpful to me
Module Procedure
MyApplication MyApplication
USER32.dll DispatchMessageW
USER32.dll DispatchMessageW
USER32.dll TranslateAcceleratorW
When I say large - I mean large numbers. I can easily load 3-4000 directories - but when I started testing larger numbers like 10,000+ it gives me the message above. And I have customers that are going to want to load directory trees in the 200,000 range. I seem to be able to replicate this fairly consistantly.
Any thoughts as to why this is happening? And yes I am aware that I probably shouldn't be loading that many items into the TreeMap - but it is a valid use of it - and it should crash more gracefully
Bradley MacDonald
I have been having a problem with an error while loading the TreeMap Series. It has taken me a number of hours to track down - as the error message does not give a line number using EurekaLog.
Basically - I have directory sizing utility - and I have implemented the TreeMap as another way of looking at the disk space.
The problem I am running into - is when I try to load large numbers of directories...
I get the error...
Type: EInvalidOp
Message: Invalid floating point operation.
and the call stack is not much more helpful to me
Module Procedure
MyApplication MyApplication
USER32.dll DispatchMessageW
USER32.dll DispatchMessageW
USER32.dll TranslateAcceleratorW
When I say large - I mean large numbers. I can easily load 3-4000 directories - but when I started testing larger numbers like 10,000+ it gives me the message above. And I have customers that are going to want to load directory trees in the 200,000 range. I seem to be able to replicate this fairly consistantly.
Any thoughts as to why this is happening? And yes I am aware that I probably shouldn't be loading that many items into the TreeMap - but it is a valid use of it - and it should crash more gracefully
Bradley MacDonald