in reply to Re^3: Detecting memory leaks.
in thread Detecting memory leaks.

Oh, for a minute I got my hopes up!

I did:

$mu->record('at i_Booking exit'); $mu->dump(); print "Find cycle >>>>>>>>"; find_cycle($booking_dlg); print "<<<<<<<<<< Find cycle"; return $booking_dlg;

And the

find_cycle($booking_dlg);

Did nothing.

Oh Well.

Regards

Steve.

Replies are listed 'Best First'.
Re^5: Detecting memory leaks.
by Anonymous Monk on May 05, 2015 at 00:05 UTC

      Hi Anon,

      I'm looking at the synopsis for Devel::Leak,

      use Devel::Leak; ... setup code my $count = Devel::Leak::NoteSV($handle); ... code that may leak Devel::Leak::CheckSV($handle);

      What is $handle

      Regards

      Steve

        I'm looking at the synopsis for Devel::Leak, ... What is $handle

        Its a scalar :p

        use Devel::Leak; warn Devel::Leak::NoteSV(my $handle); {my$a={};$a->{a}=$a;} warn Devel::Leak::CheckSV($handle ); __END__ 6599 at - line 2. new 003F9A6C : new 003F9B1C : 6601 at - line 4.