Hooklogger: Tracking leaked heap cells

The HookLogger application from Symbian Ltd provides easy journaling facilities for logging memory allocations, processes, thread creation and leaves when executing an application under the Symbian OS Emulator. The main use for most developers is pin-pointing the source of a leaked heap cell.

The tool can be downloaded from Symbian web site.


> Hooklogger: Tracking leaked heap cells

after installing this, the emulator does not start up any more. it complains about a missing emulator.dll component. i dont have emulator.dll anywhere on my system.

anyone got that to work ?

> Hooklogger: Tracking leaked heap cells

Yep this works and it's GREAT! Remember to set correct default device using 'devices' command.. If you are using CodeWarrior, remember also set that euser.dll is eka1 version.

from documentation:

[ARCH] == EKA1 | EKA2 (default == EKA1 for WINS, EKA2 for WINSCW)

> Hooklogger: Tracking leaked heap cells

thanks for the suggestion. my default device is UIQ_21:com.symbian.UIQ which is correct, and I use MW Codewarrior Personal edition 2.5

I call the script with hookeuser winscw udeb eka2

still the same issue. if i start epoc.exe it gives me the missing component message about "emulator.dll"

Do you have this dll on your machine?

thanks sebastian

> Hooklogger: Tracking leaked heap cells

Use EKA1 as your device is running on EKA1 kernel (afaik there's no currently EKA2 devices around). That default means that it's creating EKA2 version by default.

> Hooklogger: Tracking leaked heap cells

ha! who knew, thanks! i believed EKA2 was what i needed, because it said "...EKA2 for WINSCW" in the command line help.

so it's starting up now!

thanks again,

Sebastian

> Hooklogger: Tracking leaked heap cells

I amusing UIQ2.0 and codewarrior I got the following error when i run the command hookeuser winscw udeb EKA2 Can't locate CDevicesCLAccessor.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/s ite/lib .) at C:\Program Files\Common Files\Symbian\Tools\HookEUSER.pl line 5. BEGIN failed--compilation aborted at C:\Program Files\Common Files\Symbian\Tools \HookEUSER.pl line 5.

> Hooklogger: Tracking leaked heap cells

Reread the install notes (and the posts just above): UIQ is based on EKA1, not EKA2.

> Hooklogger: Tracking leaked heap cells

It seems that "hooklogger" only works with old version, it doesn't work with 9.0

> Hooklogger: Tracking leaked heap cells

I also get "Can't locate CDevicesCLAccessor.pm in @INC" after "hookeuser.pl wins udeb eka1" (VC6). How to cope with this?

> Hooklogger: Tracking leaked heap cells

If you get error message: "Can't locate CDevicesCLAccessor.pm" You need to add: perl -I"C:\Program files\Common Files\Symbian\Tools" -S HookEUSER.pl %1 %2 %3 %4 %5 %6 %7 %8 %9

to: C:\Program Files\Common Files\Symbian\Tools\HookEUSER.cmd

> Hooklogger: Tracking leaked heap cells

The original link above is broken. Here's the new one: http://developer.symbian.com/main/downloads/files/HookLogger_Setup.zip

> Hooklogger: Tracking leaked heap cells

Will this work for Symbian 7.0 or is it restricted only for Symbian 8.0 ??

> Hooklogger: Tracking leaked heap cells

hi I have downloaded and installed the hooklogger in C:\Program Files\Common Files\Symbian\Tools and i am running the command "hookeuser.cmd" and then after wards i am runinng " hookeuser.pl winscw udeb EKA1" I am getting the output as Target path is c:\symbian\uiq_21/epoc32/release/winscw udeb euser.orig.dll present has EUSER.DLL already been hooked?

After this i am opening my hooklogger form start->programfiles->symbian->hooklogger.exe and the status is know as not connected as shows above when i say EPOC from command prompt its showing the status as connected in the hooklogger.exe. the error what i am getting are "could not find the session request functions. request hooking incomplete." "could not find RunMainThread() uid filtaration disabled"

but when i click the app its not able to capture the process and memory and other stuffs.

I want to know what is wrong in my setting or please let me know the steps to follow the executiion.

regards Chandrashekar.B.S

Re: > Hooklogger: Tracking leaked heap cells

Hi All,
I am also using "HookLogger" to get memory leaks for my application develop using S60 2nd Edition.
I am getting the same error "can not found RunMainThread()" when i run emulator after running "HookLogger". Sad

Can any body help me to point out this error?

i am using Carbide 1.2.

Thanks in Advance....
Shrinivas

Hooklogger: Tracking leaked heap cells

Hi, Does this support OS v9.1? Is there support for UIQ3.0? Also, when I try hookeuser winscw for the above sdk, I get ""copy D:\Program Files\Common Files\Symbian\Tools\EUserParasite_eka2.dll at HookEuser.pl line 76. When I try HookEUser -r winsce udeb eka2 I get Target path is \Symbian\UIQ3SDK\epoc32/release/winscw/udeb Can't find "euser.orig.dll" - was EUSER.DLL hooked by this script? at HookEUSER. pl line 64.

Should I assume hooklogger is hooked already?

Also I do not find "testhook.zip" mentioned in the help doc.

Thanks for any help

Tanuja