Здравейте на всички,търся помощ за превод на следния текст :
''KERN-EXEC 3 is one of the most common panic codes that most of the Symbian programmers face. It becomes extremely annoying to catch and fix the panic if its occurs when you exit the application.So here are some guidelines to avoid as well as fix the panic.
1. If you have any member variables which are pointers to objects owned externally,try to convert them to references so as to avoid deleting them accidentally.
2. If making them references is not an option then,just mark them in code comments as pointers which don't need to be deleted.This makes it easier to track pointers which are being accidentally double deleted.
3. Check the documentation about the pointer returned by the Symbian functions.Specifically check the ownership status of the pointer's returned. So some functions like :
view plaincopy to clipboardprint?
1. CEikonEnv::Static()->ScreenDevice()
CEikonEnv::Static()->ScreenDevice()
just return you a pointer while the ownership is not transferred.So no need to delete the pointer returned. But some functions like
view plaincopy to clipboardprint?
1. AknsUtils::CreateBitmapL()
AknsUtils::CreateBitmapL()
typically transfer the ownership to the caller.So just remember to delete the pointer.
4. Also the most common reason would be forgetting to delete the member variables of an object on its destruction. So just a check of the destructor would be helpful.
If these simple things are kept in mind,it is possible to avoid and fix the KERN-EXEC 3 panic.
Also please let us know if this post was useful or not. "