strange problem while debuggging

Login to reply to this topic.
Tue, 2006-11-28 06:57
Joined: 2004-12-31
Forum posts: 82
Hi all

I am facing a very strange problem while debugging my code in CW for symbian 3.0.    I have an exe and a dll.
If while debugging my exe i go into my dll code, then on exitting the application i get a KERN-EXEC-3 panic. on call stack i do not find any function that belong to my app or dll.

But if i donot go into my dll code while debugging then on exeting the application i am getting a alloc panic(memory leak).

my point is how does it matter tht how much deep i go into my code while debugging it should give me same results if i have keot the code and input as same.

IS IT A BUG IN CODE WARRIOR.....Huh?

Evil

warm regards

saurabh


Tue, 2006-11-28 08:31
Joined: 2005-11-20
Forum posts: 1058
Re: strange problem while debuggging
There are rare cases where the mere presence of a debugger can alter the behaviour of a program.

According to my experience this mostly happens in connection to uninitialized variables that have an upredictable value, but e.g. always the same when the program is running alone, and another one when the program and the debugger are running together (e.g. because the program is loaded at another location in memory when loaded under the control of the debugger.)

E.g. you have a boolean that you not properly initialize in your program; if your program runs alone it happens to have a value of True, if your program shares the memory with the debugger it happens to have a value of False.

René Brunner

Tue, 2006-11-28 09:16
Joined: 2004-12-31
Forum posts: 82
Re: strange problem while debuggging
i understand your point but am using debugger in both the cases...in one caswe am only debugging exe and dll while in other am debugging only exe.

and in first case before getting kern-exec -3 panic i was getting alloc(mem leaks) which all i have removed.

so it is still not clear that why is there a mem leak if i am only debugging exe and not both. and from where the hell is this kern-exec 3 panic coming(i cannot see any of my code in callstack).

all comments are welcome   Afro

warm regards

saurabh

Wed, 2006-11-29 06:38
Joined: 2006-10-25
Forum posts: 27
Re: strange problem while debuggging
why dont u try using hooklogger.
May be u have deleted a variable teice which leads to memory leak.
Check out ur code.
Cheers
Sirisha
Wed, 2006-11-29 09:42
Joined: 2004-12-31
Forum posts: 82
Re: strange problem while debuggging
still my question reamins there tht am i getting different outcomes depnding on how deep i debug... Huh

warm regards

saurabh

Wed, 2006-11-29 11:05
Joined: 2004-11-29
Forum posts: 1134
Re: strange problem while debuggging
If you application uses asyncronous calls, how deep you debug can change the timeing of things.

Requests not finising in time or finishing earlier..

Not seeing your code in the call stack suggests it is something in the framework you mess up. Can be all kinds of reasons.
Thu, 2006-11-30 06:55
Joined: 2004-12-31
Forum posts: 82
Re: strange problem while debuggging
i am not using any asynchronous call at the moment...though i have a few thread in my application. but before exit i have made sure that those threads are killed.  moreover my UI is minimal just a simple hello world

warm regards

saurabh

Thu, 2006-11-30 08:51
Joined: 2004-11-29
Forum posts: 1134
Re: strange problem while debuggging
I strongly suspect your threads then...
Or the method you use to make sure they are killed.

Do they share any memory?

what functions do you see in the callstack?
  • Login to reply to this topic.