Tool Leak Check v3

Zedzy

ℑΣÐℑΨ
Reaction score
41
I don't know much about computers so can some1 help me with this:
Help_Me.jpg

How do I get the most recent one or whatever?
 

BRUTAL

I'm working
Reaction score
118
the older version works fine for me,but the newer ones dosnt :(
i have the same problem as zedzy, and i downloaded that file and placed it in my system32 w.e, but it still dont work :banghead:
 
J

Julian5

Guest
There are a couple of issues.

First off, on the unit group leaks, why doesn't it show "Custom script: set bj_wantDestroyGroup = true"?

While not as efficent as setting a unit group variable then destroying it, it's alot easier.

Also, it complains about not removing integers. o_O They don't leak, so it shouldn't say that, should it?

Edit: Also, when I DO remove a point leak by setting it to a variable with something added like a polar offset, it goes emo and says I need another variable to fix that leak. o_O

(Line: 6) (Word: 3) Location Leak
Set loc = ((Center of Mountains Enter <gen>) offset by 100.00 towards 90.00 degrees)
Set loc = ^Leak
(Suggested Fix) Set MyLocation = ((Center of Mountains Enter <gen>)
(Suggested Fix) Set loc = MyLocation offset by 100.00 towards 90.00 degrees)
(Suggested Fix) Custom script: call RemoveLocation(udg_MyLocation)

(Line: 6) (Word: 8) Location Leak
Set loc = ((Center of Mountains Enter <gen>) offset by 100.00 towards 90.00 degrees)
Set loc = ((Center of Mountains Enter <gen>) ^Leak
(Suggested Fix) Set MyLocation = offset by 100.00 towards 90.00 degrees)
(Suggested Fix) Set loc = ((Center of Mountains Enter <gen>) MyLocation degrees)
(Suggested Fix) Custom script: call RemoveLocation(udg_MyLocation)
 

Knight7770

Hippopotomonstrosesquiped aliophobia
Reaction score
187
First off, on the unit group leaks, why doesn't it show "Custom script: set bj_wantDestroyGroup = true"?

While not as efficent as setting a unit group variable then destroying it, it's alot easier.
Because that is an horrible way of removing unit group leaks.
 

Flare

Stops copies me!
Reaction score
662
First off, on the unit group leaks, why doesn't it show "Custom script: set bj_wantDestroyGroup = true"?

While not as efficent as setting a unit group variable then destroying it, it's alot easier.

Not being as efficient may explain why it's not a very viable option for leak removal (from what I've heard, it doesn't even work sometimes :S) and you can't use the group later which is one more good point about using group variables
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
Not being as efficient may explain why it's not a very viable option for leak removal (from what I've heard, it doesn't even work sometimes :S) and you can't use the group later which is one more good point about using group variables

It is because it destroys it on ForGroup call. I don't see how it is inefficient though, I mean, the trigger still processes the if, it just doesn't perform the action.

No it isn't horrible or nothing, it actually is accurate kind of because it does it at the instance (I think)...
JASS:
function ForGroupBJ takes group whichGroup, code callback returns nothing
    // If the user wants the group destroyed, remember that fact and clear
    // the flag, in case it is used again in the callback.
    local boolean wantDestroy = bj_wantDestroyGroup
    set bj_wantDestroyGroup = false

    call ForGroup(whichGroup, callback)

    // If the user wants the group destroyed, do so now.
    if (wantDestroy) then
        call DestroyGroup(whichGroup)
    endif
endfunction
 

Kazuga

Let the game begin...
Reaction score
110
Hm, I downloaded both zips but nothing hapends when I run the files, neither one of them.. Do you need any other program also?
 

PooBucket

New Member
Reaction score
12
This looks like a great tool, but for some reason I can't open it? Am I doing something wrong? Whenever I double click it, nothing appears and only this faint sound (when you make an error) is heard when I click it :banghead:.
 

PooBucket

New Member
Reaction score
12
This looks like a great tool, but for some reason I can't open it? Am I doing something wrong? Whenever I double click it, nothing appears and only this faint sound (when you make an error) is heard when I click it :banghead:.

Nvm it works, after I downloaded that library file from Knight770 TY SO MUCH! <3
 

DeathWing

New Member
Reaction score
3
About source code...
Sure thing. Once I finish commenting it I'll post it. This version is made in Visual Basic 6 so I will upload the actual files as well as the code itself for those who don't have VB6.
... I heard that www.sourceforge.net gives FREE web hosting space for ppl that decide to make their source code "Open Source" :p for ya to know.
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
I found a problim, the leak checker says that when you chose all unit's in playable map area it creates a leak, however all units and playable map area dont leak. Just thought I would let you know.
 

WarToast

Active Member
Reaction score
3
Try these:
1
2

How do you make that work with Vista 64bit? I don't really have a clue about these things, so all I can do is to follow a tutorial like the one on the site. I tried placing the file in my System32 folder and then doing as it says on the site.

Code:
The module "\windows\system32\COMCTL32.OCX" failed to load.
Make sure the binary is stored at the specific path or debug it to check for problems with the binary or dependant .DDL files.

The specified module could not be found.

Btw, I also have a folder called SysWOW64, should I do at that path?
 

Lanboy

TH.net Regular
Reaction score
22
Thanks for this.

I actually remember quite a while ago you made a patch and said that it was the final version and you'd never update it again :p

Was sad news. Thanks for the patch. :D
 
T

thewreck

Guest
New Leak

Hi. There is a leak this does not detect. Its incredibly simple, and I have no fix for it. Its not likely to affect most maps i guess, but in my map it has turned out to be crucial.


TRIGGER:
Code:
ohNoes
    Events
        Unit - A unit Is issued an order targeting an object
    Conditions
    Actions

this is the JASS equivalent:
Code:
function Trig_ohNoes_Actions takes nothing returns nothing
endfunction

//===========================================================================
function InitTrig_ohNoes takes nothing returns nothing
    set gg_trg_ohNoes = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_ohNoes, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
    call TriggerAddAction( gg_trg_ohNoes, function Trig_ohNoes_Actions )
endfunction

This trigger, without any actions of conditions what so ever leaks about 0.25-0.5 kb of memory each time it is fired. The best way to test it is by creating a trigger which orders a unit to do something a couple of thousand times by using a (for example):

Code:
For each (Integer A) from 1 to 3000, do (Actions)
    Loop - Actions
        Unit - Order Footman 0002 <gen> to Right-Click Footman 0000 <gen>

In my map, i use squads of units that are controlled by squad flags, thus when moving the flag, up to 20 units are ordered by triggers, thus when you have 10 flags selected, there is potentially 200 orders each time. Imagine 8 players doing this over the course of a game of an hour of say, 40 order actions per minute! Thats almost 1000 mb of memory! gah!

Without this leaking trigger, this test action does not leak a single KB.

Anyway, i have been reading through a number of leak tutorials, but so far have never read anything about this. Anyone knows what to do?
 

nemesispoi

New Member
Reaction score
5
im confused i paste the code into it and it finishes without checking anything even though i know theres leaks i just wnat to check and see if the program works which obvioulsy it doesnt work for me:banghead::banghead:
 
L

Liope

Guest
This tool is so neat.. it suggested way to fix all the leaks and i had and it was easy to understand, really like this :p +rep for you
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top