Link to home
Start Free TrialLog in
Avatar of mkaratha
mkaratha

asked on

Run-time error 480: Can't create autoredraw image

When dealing with many or very large DC's you can get "Run-time error 480: Can't create autoredraw image". According the documentation this is caused by unsuffcient memory. However, I get this error inspite the system has sufficient RAM (and enough swap file). For some reason Win98 and Win2000 behave differently. Win2000 is able to use more pictures, before this error is raised. I suspect this has little to do with the actual system memory.

Question:

How can I estimate the total size of all DC's (in MB) that the system can handle? I want to avoid the error and I DO NOT WANT TO TRAP the error. At the point you trap the error the system is already VERY unstable. GlobalMemoryStatus will not work!


Michael from Sweden
ASKER CERTIFIED SOLUTION
Avatar of abhijitmathure
abhijitmathure

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mkaratha
mkaratha

ASKER

Thanks,

There were som good examples in SDK on GetDeviceCaps. The initial test I made seems to work. I have to read more about the structure parameters though. Great idea!

Michael