[Noob] - EikStart::RunApplication() makes the emulator crash
| Mon, 2008-08-11 01:22 | |
|
Hello everybody, LOCAL_C CApaApplication* NewApplication()where CIMClientApp is a subclass of CAknApplication. The method EikStart::RunApplication() makes the application and the emulator crash badly. Method NewApplication() is not executed, because crash occurs before its execution. Thread [Thread id: 5276] (Suspended: Signal 'Exception 29539' received. Description: Microsoft C++ Exception (0xE06D7363).) Help me please |
|






Forum posts: 4
Ok I solved the problem, unchecking '0xE06D7363' under Debug Dialog->x86 Exceptions.
I discovered that this exception occurred during the emulator startup (after some seconds), so before executing application code.
Now the emulator starts correctly, but when RunApplication() is executed everything crashes again...
This is the last console output, (unfortunately I can't get any stack trace):
......................
...........
62.425 TeUtl: ECN.HandleCallBack.<
62.440 TeUtl: ECN.DoHandleCallBack.<
62.440 TeUtl: ECN.DoHandleCallBack.>
62.440 TeUtl: ECN.HandleCallBack.>
62.445 CDRMClock::TimeChanged
62.450 CDRMClock::TimeChanged ok
62.560 Thread IMClient.exe::Main created @ 0x297bbf8 - Win32 Thread ID 0x93c
62.590 Thread IMClient.exe::IMClient Killed -1
Please tell me some hint
Forum posts: 1233
-1 is KErrNotFound.
Possibly you have some problem with application resources missing that the app framework try to load.
Forum posts: 672
I'd guess that your resource file is broken. Check that all your resources are after RSS_SIGNATURE (must be first), RESOURCE TBUF r_default_document_name and EIK_APP_INFO.
Forum posts: 4
Thanks for replies. I think you are right, because actually I'm trying to use an old project (made with 2nd edition, I guess) with last sdk and carbide, and I know that resource definition is slightly different, so in fact everything in my project is broken.
I'm reading this document to port the project (which I suggest to everyone trying to port old applications),
http://www.forum.nokia.com/info/sw.nokia.com/id/6190aad6-3b3b-4a6a-a53a-221e61c94248/S60_Platform_Porting_from_2nd_to_3rd_Edition_v1_1_en.pdf.html
but I still have much confusion about resources. I changed something (like RESOURCE to START RESOURCE...) and now the crash is different, and this time I have also a stack trace! (I've compressed it in some way)
Thread [Thread id: 1776] (Suspended: Signal 'Halt' received. Description: User halted thread.)38 0x2719636( ekern.exe )() 0x02719636
......
26 0x27131A4( ekern.exe )() 0x027131a4
25 0x600423C6( euser.dll )() 0x600423c6
......
21 0x6002E8BF( euser.dll )() 0x6002e8bf
20 0x40112A8C( bafl.dll )() 0x40112a8c
19 0x40112A5E( bafl.dll )() 0x40112a5e
18 0x40108A86( bafl.dll )() 0x40108a86
17 0x4060BD41( cone.dll )() 0x4060bd41
16 0x1589471( eikcoctl.dll )() 0x01589471
15 0x40B4A812( eikcore.dll )() 0x40b4a812
14 0x40B4A73E( eikcore.dll )() 0x40b4a73e
13 0x48378F( avkon.dll )() 0x0048378f
12 0x485102( avkon.dll )() 0x00485102
11 CAppUi::ConstructL() D:\Symbian\Carbide\workspace\IMClient-mod\src\ui\Appui.cpp:35 0x00401dfa
10 0x40B4DFF5( eikcore.dll )() 0x40b4dff5
......
6 0x40B5565D( eikcore.dll )() 0x40b5565d
5 E32Main() D:\Symbian\Carbide\workspace\IMClient-mod\src\App.cpp:62 0x00401704
4 _E32Startup() Z:\src\cedar\generic\base\e32\EUSER\epoc\win32\uc_exe.cpp:74 0x0040ae7a
3 0x271884F( ekern.exe )() 0x0271884f
2 0x2716E04( ekern.exe )() 0x02716e04
1 0x7C80B713( KERNEL32.dll )() 0x7c80b713
In case you are wondering what's in Appui.cpp:35 here is the line:
BaseConstructL(EAknEnableSkin);Am I following the "right" way?
EDIT:
Also, these are the console last words:
69.565 Thread IMClient_0x0648A0B2::IMClient_0x0648A0B2 Panic USER 23This is the beginning of resources, other definitions follow.
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf = "IMClient"; }
RESOURCE EIK_APP_INFO
{
hotkeys = r_imclient_hotkeys;
menubar = r_imclient_menubar_offline;
cba = R_BUTTONS_OFFLINE;
}
Forum posts: 672
USER 23: "This panic is raised when any operation that moves or copies data to an 8 bit variant descriptor, causes the length of that descriptor to exceed its maximum length."
Are you doing something with 8 bit descriptors? Care to show the whole AppUi::ConstructL?
Edit: If you are using Carbide.C++, I suggest installing the Panic lookup plugin, which is a quick way to find out the error code and panic explanations.
Forum posts: 4
Thank you Andreas,it helped me a lot.
Now the project starts "almost" fine.
Bye!