|
|
User login
Feeds |
KERN EXEC 3
|
|||||
| Tue, 2005-05-24 06:11 | |
|
Hi
I have created an app which has a setting list in it. The list shows fine but after exiting from app I get KERN EXEC 3. The documentation says it is an unhandled exception most probably a dereferenced NULL. What does dereferencing NULL mean anyway? The problem is I dont what to make of this KERN EXEC 3. Regards, kurtrips |
|
Forum posts: 12
"int * aPointer;
aPointer = NULL;
int anInteger;
anInteger = *aPointer"
The above will fail on the last line with KERN EXEC 3.
Other piece of code that has the same problem is:
"class C {
public:
int *iInteger;
}; // C
....
C *myClass = NULL;
int anInteger;
anInteger = myClass->iInteger;"
This will also fail on the last line, since "myClass" has the value "NULL".
However, these mistakes are easily caught using a debugger. Do you have one to use?
panayotis