Getting Error :Program Closed

Login to reply to this topic.
Mon, 2007-01-15 15:28
Joined: 2006-12-19
Forum posts: 72
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

Mon, 2007-01-15 17:33
Joined: 2006-12-12
Forum posts: 135
Re: Getting Error :Program Closed
Hi,

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

Smiley

Developer for PalmOS and Symbian.

by Serginho

Mon, 2007-01-15 17:58
Joined: 2005-09-27
Forum posts: 7
Re: Getting Error :Program Closed
Usually this happens when framwork functions are define wrongly, check for example
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
Wed, 2007-01-17 13:20
Joined: 2006-12-19
Forum posts: 72
Re: Getting Error :Program Closed
Hi Serginho,

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
Wed, 2007-01-17 13:39
Joined: 2006-12-12
Forum posts: 135
Re: Getting Error :Program Closed
Hi, i think this will solve your problem.

http://discussion.forum.nokia.com/forum/showthread.php?t=94812

See ya!
  Smiley

Developer for PalmOS and Symbian.

by Serginho

  • Login to reply to this topic.