mIRC Home    About    Download    Register    News    Help

Print Thread
#150835 09/06/06 10:10 PM
Joined: Apr 2006
Posts: 24
A
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Apr 2006
Posts: 24
Is there a window limit for mIRC? I can't seem to go past about 150 or so.

To reproduce, join about 150-200 channels. Or make 150-200 @windows. I found this bug while coding a mirc bot to close botnet channels. The botnet has used about 170 channels.

It also seems to count accross different istances of mIRC. I had my main chatting mIRC open and my bot open. Once I closed some windows on my main mIRC, the bot could open a couple more.

mIRC 6.17 / My own scripts, nothing special (no PnP or UPP or wahtever) / Windows XP SP2


#150836 09/06/06 10:37 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
This limit is most probably imposed by your OS and not by mIRC. I managed to open about 400 custom windows before mIRC gave up with an * Error creating window error in Status. Are you sure you aren't getting the same error? If it turns out you are, read on.

On Win9x/ME there is a pretty low limit on the number of the so called GDI, User and System objects. Roughly, the more windows you have open in total (of any application), the more objects of these kinds are in use. The limit on such systems is very easily reached.

On WinNT/2000/XP there is also a GDI object limit but is much higher and very rarely reached. A more frequent limiting factor on the maximum number of windows (although not nearly as limiting as the Win9x ones) is a memory area called Desktop Heap. You can find more info in this MSDN blog post and the Microsoft KB article it links to.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#150837 10/06/06 12:37 AM
Joined: Apr 2006
Posts: 24
A
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Apr 2006
Posts: 24
That worked. Thanks for the help dude.



Link Copied to Clipboard