Getting Error :Program Closed
| Mon, 2007-01-15 15:28 | |
|
Hi,
While ruinning an applivcation I am getting error program closed b4 it got started. Iam not getting any debug message by selecting the Console Window->Debug Messages also. ErrRd file is created in the C:\\Symbian\...........\system\bootdata folder also but contains nothing. Pls,suggest what to do to debug it. Regards, Netra |
|






Forum posts: 135
Try to put a breakpoint at the start of the application... Than you can see the line that the application stops.
If you get the line, paste here.
See ya
Developer for PalmOS and Symbian.
by Serginho
Forum posts: 7
Helloworld example how to do this. Also note that those are changed from Symbain9.x onwards.
For example following is from SysInfo example from forum Nokia.
/*
* ============================================================================
* Name : CSysInfoApp from SysInfoApp.cpp
* Part of : SysInfo
* Created : 08/08/2006 by Forum Nokia
* Implementation notes:
* Version : 2.0
* Copyright: Nokia Corporation, 2006
* ============================================================================
*/
#include "SysInfoApp.h"
#include "SysInfoDocument.h"
#ifdef __SERIES60_3X__
#include <eikstart.h>
#endif
/*
-----------------------------------------------------------------------------
CSysInfoApp::AppDllUid()
Description: returns application UID
Comments :
Return values: Returns application UID
-----------------------------------------------------------------------------
*/
TUid CSysInfoApp::AppDllUid() const
{
return KUidSysInfo;
}
/*
-----------------------------------------------------------------------------
CSysInfoApp::CreateDocumentL()
Description: Creates CSysInfoDocument object
Comments :
Return values: Returns application document pointer
-----------------------------------------------------------------------------
*/
CApaDocument* CSysInfoApp::CreateDocumentL()
{
return CSysInfoDocument::NewL( *this );
}
/*
-----------------------------------------------------------------------------
NewApplication()
Description: Constructs CSysInfoApp
Comments :
Return values: created application object
-----------------------------------------------------------------------------
*/
EXPORT_C CApaApplication* NewApplication()
{
return new CSysInfoApp;
}
#ifndef __SERIES60_3X__
// ---------------------------------------------------------
// E32Dll(TDllReason)
// Entry point function for EPOC Apps
// Returns: KErrNone: No error
// ---------------------------------------------------------
//
GLDEF_C TInt E32Dll( TDllReason )
{
return KErrNone;
}
#else
// ---------------------------------------------------------
// E32Main()
// Entry point function for new (>= 9.0) EPOC Apps (exe)
// Returns: Sistem Wide error codes or KErrNone if all goes well
// ---------------------------------------------------------
//
GLDEF_C TInt E32Main()
{
return EikStart::RunApplication( NewApplication );
}
#endif
Forum posts: 72
This is what I got after setting a break point at d begging of the program.
"CORBA initialization succeeded but host IDE did not register main callback. Exiting main thread."
Help me understanding the situation.
Thanks,
Netra
Forum posts: 135
http://discussion.forum.nokia.com/forum/showthread.php?t=94812
See ya!
Developer for PalmOS and Symbian.
by Serginho