Getting panic CONE 14

Login to reply to this topic.
Wed, 2008-01-23 08:21
Joined: 2008-01-23
Forum posts: 21

hi,
can anu one help me, my code is error free and i am getting pannic CONE 14.. I am a beginner so not abel to trace what is the problem...
This is my RSS file contain.

/*
============================================================================
Name : Mylist.rss
Author :
Version :
Copyright : Your copyright notice
Description : This file contains all the resources for the Mylist.
============================================================================
*/

#include eikon.rh
#include eikon.rsg
#include qikon.rh
#include qikon.hrh
#include uikon.rh
#include uikon.hrh

#include QikCommand.rh
#include QikCommand.hrh

#include QikListBox.rh

#include QikListBoxStandardLayouts.hrh

#include "Mylist.hrh" // Application specific commands
// Strings that should be localised should not be defined in the resource file itself,
// but in separate files with the extension .rls.
#include "Mylist.rls" // Defines localisable strings

// Use this statement to ensure that the resources in the file have a unique ID
// so that an application can use multiple resource files without resource ID
// conflict. This statement must be the first non-comment statement in the file.
NAME MYLI

// The three following resources are mandatory fields and need to be the
// first resource fields in the resource file. Need to be defined in this order.
// These resources don't need to contain any useful info, just need to be there.

// RSS_SIGNATURE can be used to specify version information
RESOURCE RSS_SIGNATURE { }

// Defines the name of the default file the application framework creates.
// This resource must always be the second resource in the resource file.
RESOURCE TBUF { buf = "Mylist"; }

// This resource is NOT used by UIQ.
// Otherwise this resources is used to define an application's GUI.
RESOURCE EIK_APP_INFO { }

//----------------------------------------------------
//------------------ TEXT CONSTANTS ------------------
//----------------------------------------------------
// These resources hold strings that are used in the C++ source code,
// these strings are used as infoprint text.
// The actual string is defined in the .rls file.
RESOURCE TBUF r_infoprint1_text { buf = STRING_r_Mylist_infoprint1_text; }
RESOURCE TBUF r_infoprint2_text { buf = STRING_r_Mylist_infoprint2_text; }
RESOURCE TBUF r_infoprint3_text { buf = STRING_r_Mylist_infoprint3_text; }

//----------------------------------------------------
//-------------- CONFIGURATION FOR VIEW --------------
//----------------------------------------------------
// A view shall use the QIK_VIEW_CONFIGURATIONS resource struct to define which
// UI configurations it supports. Can also use QIK_VIEW_CONFIGURATIONS to setup
// the view to switch layout and command list automatically when changes of UI
// configuration occur. This is done with the view and command_list members of
// the QIK_VIEW_CONFIGURATIONS.

// The application supports the reference UI Configurations that are supported
// in the UIQ 3 SDK. Use the UiqEnv tool, to change the UI Configuration in the
// emulator in order to develop and test the application with varying phone styles.
RESOURCE QIK_VIEW_CONFIGURATIONS r_ui_configurations
{
configurations =
{
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikPenStyleTouchPortrait;
command_list = r_Mylist_commands;
view = r_Mylist_layout;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikPenStyleTouchLandscape;
command_list = r_Mylist_commands;
view = r_Mylist_layout;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStyleTouchPortrait;
command_list = r_Mylist_commands;
view = r_Mylist_layout;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStylePortrait;
command_list = r_Mylist_commands;
view = r_Mylist_layout;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStyleSmallPortrait;
command_list = r_Mylist_commands;
view = r_Mylist_layout;
}
};
}

//----------------------------------------------------
//------------------ VIEW COMMANDS -------------------
//----------------------------------------------------
// Commands are defined with the QIK_COMMAND_LIST struct,
// commands can also be created in code by instantiating CQikCommand.
// The control command id for debug command is a reserved id from uikon.hrh.
// The id for each infoprint command is defined in the Mylist.hrh file.
// The string for each command is defined in the Mylist.rls file,
// due to localisation.
RESOURCE QIK_COMMAND_LIST r_Mylist_commands
{
items =
{
/**
This command shall only be visible in debug mode because it is only
used to find memory leaks during development of the application.
*/
QIK_COMMAND
{
id = EEikCmdExit;
type = EQikCommandTypeScreen;
// Indicate that this command will only be visible in debug
stateFlags = EQikCmdFlagDebugOnly;
text = STRING_r_Mylist_close_debug_cmd;
},
QIK_COMMAND
{
id = EMylistInfoPrint1Cmd;
type = EQikCommandTypeScreen;
text = STRING_r_Mylist_infoprint1_cmd;
},
QIK_COMMAND
{
id = EMylistInfoPrint2Cmd;
type = EQikCommandTypeScreen;
text = STRING_r_Mylist_infoprint2_cmd;
},
QIK_COMMAND
{
id = EMylistInfoPrint3Cmd;
type = EQikCommandTypeScreen;
text = STRING_r_Mylist_infoprint3_cmd;
}
};
}
//----------------------------------------------------
//------------------- VIEW LAYOUT --------------------
//----------------------------------------------------
// Defines the view by linking to the pages.
RESOURCE QIK_VIEW r_Mylist_layout
{
pages = r_Mylist_layout_pages;
}

// Defines the pages of a view.
// In this application there only exist one page for the label to be displayed in.
RESOURCE QIK_VIEW_PAGES r_Mylist_layout_pages
{
pages =
{
QIK_VIEW_PAGE
{
page_id = EMylistViewPage;
page_content = r_Mylist_page_control;
}
};
}

//----------------------------------------------------
//------------------ VIEW CONTROLS -------------------
//----------------------------------------------------
// Defines the content of the page.
// The page consist of one label that is displayed in the middle of the view.

RESOURCE QIK_CONTAINER_SETTINGS r_Mylist_page_control
{
layout_manager_type = EQikRowLayoutManager;
layout_manager = r_row_layout_default;
controls =
{
QIK_CONTAINER_ITEM_CI_LI
{
unique_handle = EMylistLabelCtrl;
type = EQikCtListBox;
control = r_Mylist_listbox;

layout_data = r_row_layout_data_fill;

}
};
}






//----------------------------------------------------
//---------------------- LABEL -----------------------
//----------------------------------------------------
// Defines the label and specifies the labels font and text.
RESOURCE LABEL r_Mylist_listbox
{
standard_font = EQikListBoxLine;
txt = STRING_r_Mylist_text;

}

RESOURCE QIK_ROW_LAYOUT_DATA r_row_layout_data_fill
{
vertical_alignment = EQikLayoutVAlignFill;
vertical_excess_grab_weight = 1;
}

RESOURCE QIK_ROW_LAYOUT_MANAGER r_row_layout_default
{
default_layout_data = QIK_ROW_LAYOUT_DATA {};
}

//----------------------------------------------------
//-------------- GRID LAYOUT MANAGER -----------------
//----------------------------------------------------
// Defines the grid layout manager that places the label control in the middle
// of the view.
RESOURCE QIK_GRID_LAYOUT_MANAGER r_grid_layout_manager
{
default_layout_data = QIK_GRID_LAYOUT_DATA
{
horizontal_alignment = EQikLayoutHAlignCenter;
vertical_alignment = EQikLayoutVAlignCenter;
};
}



Thanks n Regards,
Sapna


Wed, 2008-01-23 11:34
Joined: 2007-09-20
Forum posts: 95
Re: Getting panic CONE 14


The description of CONE 14 panic

"Environment cannot find the specified resource in any resource file "


Chao,
Raghav

Wed, 2008-01-23 13:35
Joined: 2008-01-23
Forum posts: 21
Re: Getting panic CONE 14

Thanks for replying, but i am nt getting where is the problem n what i need to add in resource file...


Thanks n Regards,
Sapna

Fri, 2008-01-25 09:27
Joined: 2004-06-08
Forum posts: 147
Re: Getting panic CONE 14

First try using only lowercase letters for resource names.
r_Mylist_commands -> r_mylist_commands
Then track down the error using your debugger, and post here the piece of code that crashes.

Fri, 2008-01-25 10:01
Joined: 2008-01-23
Forum posts: 21
Re: Getting panic CONE 14

Thanks for reply , i have written one more application which is working fine... same as before,but still i will make change what you told n check will it run ...


Thanks n Regards,
Sapna

Fri, 2008-01-25 10:20
Joined: 2008-01-23
Forum posts: 21
Re: Getting panic CONE 14

It is crashing at this function in Mylistapplication file.

TUid CMylistApplication::AppDllUid() const
{
return KUidMylistApp;
}


Thanks n Regards,
Sapna

Tue, 2008-03-25 06:20
Joined: 2006-11-12
Forum posts: 7
Re: Getting panic CONE 14

You are confused because you do not understand Tao. Only a fool expects rational behavior from his fellow humans. Why do you expect it from a machine that humans have constructed? Computers simulate determinism; only Tao is perfect.

Tue, 2008-04-08 16:52
Joined: 2006-10-06
Forum posts: 8
Re: Getting panic CONE 14

Hello,

i had the same problem, and I solved it:

* shutdown emulator (if running)
* go to Epoc32 and delete all files and folder related to Your project (use e.g. Total Command, Alt+F7 and search for [MYPROJECTNAME]*.*)
* rebuild your project, now CONE 14 should disappear

I found .r01 file, that was not updated by compilation even i changed .rss file, maybe it is enough to remove this file only...

Jozef


Jozef Prídavok - http://pridavok.sk/
Mothiva, s.r.o - http://mothiva.com/

  • Login to reply to this topic.