mIRC Home    About    Download    Register    News    Help

Print Thread
#82406 08/05/04 09:00 PM
Joined: Dec 2002
Posts: 230
G
greeny Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
There's a memory leak in /drawpic.
It only happens when drawing an .ico file, the problem doesn't appear with .bmps at all.
To reproduce it, use this alias (be warned; you will have to restart mIRC after running /leaktest as it will be completely messed up smile):
Code:
alias leaktest {
  var %x = $+(",$$sfile(c:\*.ico,Choose an icon file),"),%i = 5000
  window -pf @leaktest -1 -1 16 16
  while (%i) {
    drawpic @leaktest 0 0 %x
    dec %i
  }
  close -@ @leaktest
}

Then, try to enter the mIRC setup or open some other dialogs...

Thanks for your attention smile

#82407 09/05/04 04:26 PM
Joined: Mar 2004
Posts: 457
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
confirmed on 6.14, doesn't happen on 6.03 however.

#82408 04/06/04 07:58 AM
Joined: Dec 2002
Posts: 329
Fjord artisan
Offline
Fjord artisan
Joined: Dec 2002
Posts: 329
This has been solved in mIRC 6.15
47.Fixed /drawpic memory leak when drawing icons.


Link Copied to Clipboard