strange problem while debuggging
| Tue, 2006-11-28 06:57 | |
|
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..... ?![]() warm regards |
|






?
Forum posts: 1058
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
Forum posts: 82
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
warm regards
saurabh
Forum posts: 27
May be u have deleted a variable teice which leads to memory leak.
Check out ur code.
Cheers
Sirisha
Forum posts: 82
warm regards
saurabh
Forum posts: 1134
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.
Forum posts: 82
warm regards
saurabh
Forum posts: 1134
Or the method you use to make sure they are killed.
Do they share any memory?
what functions do you see in the callstack?