Hey Guys

I have this Memory Leak that i am not able to debug. When there is no leave my program works great and there are no memory leaks but when a leave occurs during the Construction of a view then i have a memory leak.

My DoactivateL Looks something like

if(!myContainer)
{
Create Container;
Add to Stack
}

DoActivate()
{
if(myContainer)
{
RemoveFromStack;
delete Container;
}
Say if force a leave User::Leave(-1) in DoActivateL i get a memory leak. It does not look like the memory leak is from my Program but something releated to the way i am creating my views/container or may be a bug in the emulator. I tried some sample programs (multiviews example under series60ex and also Basic Drawing example program from emccsoft). I get the same error. I am not sure how to fix this. Here is a link http://forum.newlc.com/index.php?act...13035.0;id=155 of the memory leak screen shot and they are consistent in all the programs.