Tool Leak Check v3

Zedzy

ℑΣÐℑΨ
I don't know much about computers so can some1 help me with this:

How do I get the most recent one or whatever?
 

BRUTAL

I'm working
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
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!
Staff member
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
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...
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
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
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
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"
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
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
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
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.
  • Varine Varine:
    They aren't cutting my responsibilities or interjecting in my management abilities or anything, it's just stupid shit that comes up. And they don't exactly have people lining up for my job, there's not that many people applying for the positions I hire
  • Varine Varine:
    Eh, whatever. Thanks for listening guys
  • jonas jonas:
    Sure :) Let us know how it ends
  • Varine Varine:
    All of these things will end happily, they're just stressful. And I still lack many good friends that I can go to, and the ones I can are preoccupied with similar things. Thus general chit chat, cuz for some reason TH and Ghan and Tom all actively keep it up.
  • Varine Varine:
    Just gotta keep Miss Mazie up through the week until her shock wears off and she realizes that she still has family all around her, and bossman will do whatever he's going to do and I'll respond appropriately when it happens. Thank you all for the support, I do very much appreciate everyone being here for me through the years
    +3
  • vypur85 vypur85:
    Best of luck Varine!
  • vypur85 vypur85:
    I just gotten myself an offer to work in China. The pay quadruples my current one. Damn.... Not really ready to start a new life there in China.
  • The Helper The Helper:
    I have heard that they pay pretty good to English teachers in China - you would be an expat
  • jonas jonas:
    Cool, what kind of job?
  • Accname Accname:
    I would be careful with jobs in China. They can be hit and miss depending on where in China you go. Places like hong kong / Shengzen / Beijing can be neat. Other places not so much.
  • Accname Accname:
    I would recommend searching for some first person experiences for the city you got the offer in. Especially now when the political situation in China is deteriorating.
  • jonas jonas:
    Accname, long time no see
  • jonas jonas:
    What have you been up to
  • tom_mai78101 tom_mai78101:
    Hey Accname, welcome back.
  • Accname Accname:
    Not much. Working in the Renewable Energy Sector as an IT Consultant. Its okay, but I think I preferred working at the university. It was more relaxed and you met all kinds of crazy people there.
  • vypur85 vypur85:
    I gotten a teaching position for Biology in a college in Wuhan (yes, there)... I suppose it should be fine there (I hope). Many of my ex colleagues are teaching in China as well currently (none in Wuhan though)
  • vypur85 vypur85:
    And I signed the contract already. I guess there's no turning back....
  • jonas jonas:
    @Accname how many hours do you work? I heard in some sectors IT consultants rack up insane hours
  • jonas jonas:
    @vypur85 sounds nice, have fun : )
  • Accname Accname:
    I am supposed to work 40 hrs a week, but I can work more if I like and I will be paid for those hours (as long as I don't go too far, there are laws and company policies, etc)
  • Accname Accname:
    In practice its basically work as much as you like, as long as the job gets done in time.
  • jonas jonas:
    Haha, my job is like that as well... that usually means I have a few 70-80 hours weeks a year, and lots of 20 hours weeks...
  • jonas jonas:
    a few weeks ago, one of my friends basically said "jonas, I received an invitation to submit something to conference X but I'm too lazy to do it and also the conference isn't advanced enough for my high level of research*, why don't you write something? Oh by the way, the deadline is in two weeks. Enjoy!" so I got two 80 hour weeks out of that kind offer. (*of course he didn't say those parts, but it's a better story this way)
  • jonas jonas:
    now I'll have next week off to make up for overtime :p and I'll play some good old gothic 2
  • The Helper The Helper:
    Hope you are enjoying that gothic 2~

    Members online

    Affiliates

    Hive Workshop NUON Dome
    Top