Tested with PB 4.30...5.11 x32Bit @ Win7 x86 4GB RAM, Win7 x64 8GB RAM
Code stopps hier at 9988 images
ProcessExplorer tells me:
- 9.999 GDI Handles
- Working Memory 47MB
- Free Memory: 2.3 GB
So, that means, there are only 9.999 GDI handles allowed?
Code: Select all
OpenWindow(0, 0, 0, 600, 400, "")
NewList Img.l()
For a = 1 To 20000
success = #Null
If AddElement(Img())
ImgID = CreateImage(#PB_Any, 1, 1)
Img() = ImgID
EndIf
If ImgID And IsImage(ImgID)
success = 1
EndIf
If success <> 1
ForEach Img()
FreeImage(Img())
Next
MessageRequester( "Error", Str(a))
End
EndIf
Next
MessageRequester( "No error", ":-)")


