shetlandbob
Programmer
Hi,
I have an application where the users can load in a scientific test into my program for analysis. In fact they can load X number of similar tests. Each one is read into its own class.
At present I limit the number of tests they can load (for memory reasons), I know how much memory each run will hold so I know how much memory X number of tests requires.
I want to add the functionality that the user can specify the maximum number of tests they can load.
How can I tell how much memory the user has on there machine so I can calculate if the user is requesting too many tests, i.e. the machine will either crash or run slowly if they try to load too much into memory. Can I tell if they are using other programmes and how this will effect the performance.
I have an application where the users can load in a scientific test into my program for analysis. In fact they can load X number of similar tests. Each one is read into its own class.
At present I limit the number of tests they can load (for memory reasons), I know how much memory each run will hold so I know how much memory X number of tests requires.
I want to add the functionality that the user can specify the maximum number of tests they can load.
How can I tell how much memory the user has on there machine so I can calculate if the user is requesting too many tests, i.e. the machine will either crash or run slowly if they try to load too much into memory. Can I tell if they are using other programmes and how this will effect the performance.