[Common-dev] help with create new error message

[Common-dev] help with create new error message

Edgar Luevano eluevano at dextratech.com
Sun Aug 21 09:47:09 PDT 2005


Thanks a lot Haydon,
I saw this document before, but it mentions to create a library coreres.dll
rename it to
coreres.xrs and put it in /Plugins/ExtResources  directory. (Does somebody
knows about what directory
it refers?)

The things is that I did not found this directory specifically, so I'm
trying to do it following
how other errors were added, but I have not had it working, just shows a
different error code.
Best Regards
Edgar




-----Original Message-----
From: Haydon Boone [mailto:hboone at real.com]
Sent: Friday, August 26, 2005 11:39 AM
To: eluevano at dextratech.com; common-dev at helixcommunity.org
Cc: client-dev at helixcommunity.org
Subject: RE: [Common-dev] help with create new error message


Edgar -
 Perhaps one of the other community members will swoop in with the direct
answer
you need, but if not - or while you wait ;) - you may want to take a look at
the
following doc, as linked to form the Helix Client project:

Error Reporting Overview - An overview of the error reporting mechanism
within
the Helix DNA Client, including tips on debugging errors as well as
directions
on how to add your own error messages to the Helix DNA Client.

https://client.helixcommunity.org/2003/devdocs/errors/errors.htm

Hope this helps!
-/Haydon

> -----Original Message-----
> From: common-dev-bounces at helixcommunity.org [mailto:common-dev-
> bounces at helixcommunity.org] On Behalf Of Edgar Luevano
> Sent: Monday, August 22, 2005 5:09 PM
> To: common
> Cc: client
> Subject: [Common-dev] help with create new error message
>
> Dear all,
> I continued trying to add the new string for the new error code, but I got
a
> different message from
> which I wrote ("Read Error" just for test)
>
> I made the following changes, first I got a assert in chxavstringutils.cpp
> line 358 in the funtion AllocResFormatTextL
> I erase this assert line, and I got a different message error, but not the
> one I wanted.
>
> Could somebody advice me about how is the correct way to do it?
> Thank you
> Edgar
>
>
> ndex: clientsdk/exerror.cpp
> ===================================================================
> RCS file: /cvsroot/clientapps/clientsdk/exerror.cpp,v
> retrieving revision 1.2
> diff -u -r1.2 exerror.cpp
> --- clientsdk/exerror.cpp	1 Jul 2003 20:47:31 -0000	1.2
> +++ clientsdk/exerror.cpp	22 Aug 2005 21:18:35 -0000
> @@ -544,6 +544,8 @@
>          case HXR_INVALID_METAFILE:
>              SafeStrCpy(pszBuffer, "HXR_INVALID_METAFILE", ulBufLen);
>              break;
> +		case HXR_READ_ERROR:  //edgar code
> +			SafeStrCpy(pszBuffer, "HXR_READ_ERROR", ulBufLen);
>
>          default:
>  	    SafeSprintf(pszBuffer, ulBufLen, "Unknown error code %ul", ulHXCode
> );
> Index: symbian/player/series60/hxav_playerr.h
> ===================================================================
> RCS file: /cvsroot/clientapps/symbian/player/series60/hxav_playerr.h,v
> retrieving revision 1.1
> diff -u -r1.1 hxav_playerr.h
> --- symbian/player/series60/hxav_playerr.h	26 Mar 2004 23:04:57 -0000
> 	1.1
> +++ symbian/player/series60/hxav_playerr.h	22 Aug 2005 22:36:56 -0000
> @@ -183,7 +183,8 @@
>      {HXR_SE_BAD_LOADTEST_PASSWORD,        R_ERR_SERVER_ERROR},
>      {HXR_SE_PNA_NOT_SUPPORTED,            R_ERR_SERVER_ERROR},
>      {HXR_PE_PROXY_ORIGIN_DISCONNECTED,    R_ERR_SERVER_ERROR},
> -    {HXR_SE_INTERNAL_ERROR,               R_ERR_SERVER_ERROR}
> +    {HXR_SE_INTERNAL_ERROR,               R_ERR_SERVER_ERROR},
> +	{HXR_READ_ERROR,
R_ERR_READ_ERROR}
>  };
>
>  #endif
> Index: symbian/player/series60/resource/realplayer.loc
> ===================================================================
> RCS file:
> /cvsroot/clientapps/symbian/player/series60/resource/realplayer.loc,v
> retrieving revision 1.5
> diff -u -r1.5 realplayer.loc
> --- symbian/player/series60/resource/realplayer.loc	28 Apr 2005
> 21:09:50 -0000	1.5
> +++ symbian/player/series60/resource/realplayer.loc	22 Aug 2005
> 22:29:08 -0000
> @@ -626,6 +626,9 @@
>  // l: popup_note_window_1
>  #define qtn_mrp_in_clip_not_playable "CPU too slow for this clip"
>
> +//d:edgar error
> +#define qtn_mrp_read_error "Read Error"
> +
>
>  // d: Error displayed when the player engine has a non-recoverable error
>  // d: and must shut down.
> Index: symbian/player/series60/resource/rop_string.rss
> ===================================================================
> RCS file:
> /cvsroot/clientapps/symbian/player/series60/resource/rop_string.rss,v
> retrieving revision 1.3
> diff -u -r1.3 rop_string.rss
> --- symbian/player/series60/resource/rop_string.rss	28 Apr 2005
> 21:09:50 -0000	1.3
> +++ symbian/player/series60/resource/rop_string.rss	22 Aug 2005
> 22:28:06 -0000
> @@ -11,6 +11,7 @@
>
>
>  RESOURCE TBUF r_err_clip_not_playable  { buf =
> qtn_mrp_in_clip_not_playable; }
> +RESOURCE TBUF r_err_read_error         { buf =
> qtn_mrp_in_clip_not_playable; }
>  RESOURCE TBUF r_err_critical_error_exiting      { buf =
> qtn_mrp_in_backend_died; }
>  RESOURCE TBUF r_err_server_disconnect  { buf =
> qtn_mrp_in_server_disconnect; }
>  RESOURCE TBUF r_err_failed_to_connect  { buf =
> qtn_mrp_in_failed_to_connect; }
> I
> Index: symbianplayer/platform/symbian/chxavplayerr.h
> ===================================================================
> RCS file:
> /cvsroot/clientapps/symbianplayer/platform/symbian/chxavplayerr.h,v
> retrieving revision 1.3
> diff -u -r1.3 chxavplayerr.h
> --- symbianplayer/platform/symbian/chxavplayerr.h	22 Jan 2004 17:31:47 -
> 0000
> 1.3
> +++ symbianplayer/platform/symbian/chxavplayerr.h	22 Aug 2005 23:32:06 -
> 0000
> @@ -21,6 +21,7 @@
>      {HXR_FAILED,                R_ERR_FAILURE},                 // 1
> "General error. An error occurred"
>      {HXR_OUTOFMEMORY,           R_ERR_NO_MEMORY},                  // 2
> "Out of memory."
>      {HXR_INVALID_OPERATION,     R_ERR_FAILURE},             // 3 "Invalid
> Operation."
> +	{HXR_READ_ERROR,                    R_ERR_READ_ERROR},
>
>      // state errors/return values
>      {HXR_INVALID_PARAMETER,     R_ERR_FAILURE},             // 8 "Invalid
> parameter. Unable to process request."
> @@ -183,7 +184,8 @@
>      {HXR_SE_BAD_LOADTEST_PASSWORD,        R_ERR_SERVER_ERROR},
>      {HXR_SE_PNA_NOT_SUPPORTED,            R_ERR_SERVER_ERROR},
>      {HXR_PE_PROXY_ORIGIN_DISCONNECTED,    R_ERR_SERVER_ERROR},
> -    {HXR_SE_INTERNAL_ERROR,               R_ERR_SERVER_ERROR}
> +    {HXR_SE_INTERNAL_ERROR,               R_ERR_SERVER_ERROR},
> +
>  };
>
>  #endif
> Index: symbianplayer/platform/symbian/chxavstringutils.cpp
> ===================================================================
> RCS file:
> /cvsroot/clientapps/symbianplayer/platform/symbian/chxavstringutils.cpp,v
> retrieving revision 1.18
> diff -u -r1.18 chxavstringutils.cpp
> --- symbianplayer/platform/symbian/chxavstringutils.cpp	17 May 2005
> 00:23:18 -0000	1.18
> +++ symbianplayer/platform/symbian/chxavstringutils.cpp	22 Aug 2005
> 23:02:43 -0000
> @@ -355,7 +355,9 @@
>  HBufC* AllocResFormatTextL(TInt resId, TInt arg)
>  {
>      HBufC* pFormatString =
CEikonEnv::Static()->AllocReadResourceL(resId);
> -    HX_ASSERT(KErrNotFound != pFormatString->Find(KNumericArg));
> +    UINT32 re = pFormatString->Find(KNumericArg);
> +	//HX_ASSERT(KErrNotFound != pFormatString->Find(KNumericArg));
> +	RDebug::Print(_L("XXXXXXXXXXXXXXXXXXXXXXX re = %d"),re);
>      AUTO_PUSH_POP_DEL(pFormatString);
>
>      HBufC* pText = HBufC::NewL(pFormatString->Length() +
> CHXAvUtil::KMaxInt32Chars);
> Index: symbianplayer/platform/symbian/resource/realplayer.loc
> ===================================================================
> RCS file:
>
/cvsroot/clientapps/symbianplayer/platform/symbian/resource/realplayer.loc,v
> retrieving revision 1.12
> diff -u -r1.12 realplayer.loc
> --- symbianplayer/platform/symbian/resource/realplayer.loc	23 Mar 2004
> 23:48:37 -0000	1.12
> +++ symbianplayer/platform/symbian/resource/realplayer.loc	22 Aug 2005
> 22:16:42 -0000
> @@ -535,6 +535,8 @@
>  #define qtn_mrp_setting_connect_timeout "Connection time-out"
>
>
> +
> +
>  // d: Timeout on data tranferred from the streaming server.
>  // d: After timeout, player aborts and displays an error.
>  // l: list_setting_pane_1
> @@ -642,6 +644,9 @@
>  // l: popup_note_window_1
>  #define qtn_mrp_in_clip_not_playable "CPU too slow for this clip"
>
> +//d:edgar error
> +#define qtn_mrp_read_error "Read Error"
> +
>
>  // d: Error displayed when the player engine has a non-recoverable error
>  // d: and must shut down.
> Index: symbianplayer/platform/symbian/resource/realplayer.rls
> ===================================================================
> RCS file:
>
/cvsroot/clientapps/symbianplayer/platform/symbian/resource/realplayer.rls,v
> retrieving revision 1.1
> diff -u -r1.1 realplayer.rls
> --- symbianplayer/platform/symbian/resource/realplayer.rls	22 Jul 2005
> 22:05:06 -0000	1.1
> +++ symbianplayer/platform/symbian/resource/realplayer.rls	22 Aug 2005
> 22:17:15 -0000
> @@ -644,6 +644,9 @@
>  // l: popup_note_window_1
>  rls_string qtn_mrp_in_clip_not_playable "CPU too slow for this clip"
>
> +//d:edgar error
> +rls_string qtn_mrp_read_error "Read Error"
> +
>
>  // d: Error displayed when the player engine has a non-recoverable error
>  // d: and must shut down.
> Index: symbianplayer/platform/symbian/resource/rop_string.rss
> ===================================================================
> RCS file:
>
/cvsroot/clientapps/symbianplayer/platform/symbian/resource/rop_string.rss,v
> retrieving revision 1.12
> diff -u -r1.12 rop_string.rss
> --- symbianplayer/platform/symbian/resource/rop_string.rss	28 Jan 2004
> 00:08:00 -0000	1.12
> +++ symbianplayer/platform/symbian/resource/rop_string.rss	22 Aug 2005
> 22:26:59 -0000
> @@ -15,6 +15,7 @@
>
>
>  RESOURCE TBUF r_err_clip_not_playable  { buf =
> qtn_mrp_in_clip_not_playable; }
> +RESOURCE TBUF r_err_read_error         { buf =
> qtn_mrp_in_clip_not_playable; }
>  RESOURCE TBUF r_err_critical_error_exiting      { buf =
> qtn_mrp_in_backend_died; }
>  RESOURCE TBUF r_err_server_disconnect  { buf =
> qtn_mrp_in_server_disconnect; }
>  RESOURCE TBUF r_err_failed_to_connect  { buf =
> qtn_mrp_in_failed_to_connect; }
> Index: symbianrecog/hxsymrecog.uid.cpp
> ===================================================================
> RCS file: /cvsroot/clientapps/symbianrecog/hxsymrecog.uid.cpp,v
> retrieving revision 1.4
> diff -u -r1.4 hxsymrecog.uid.cpp
> --- symbianrecog/hxsymrecog.uid.cpp	4 May 2005 17:35:28 -0000	1.4
> +++ symbianrecog/hxsymrecog.uid.cpp	22 Aug 2005 23:47:58 -0000
> @@ -1,6 +1,5 @@
>  //Umake generated UID file.
>  #include <E32STD.H>
> -#include <E32CONS.H>
>  #pragma data_seg(".E32_UID")
> -__WINS_UID(0x10000079, 0x10003a19, 0x0)
> +__WINS_UID(0x10000079, 0x10003a19, 0x10009d0d)
>  #pragma data_seg()
>
> Edgar Luevano
> Dextratech Technologies
> Monterrey, N.L
> Mexico
> +52 82202010
> www.dextratech.com
>
>
> _______________________________________________
> Common-dev mailing list
> Common-dev at helixcommunity.org
> http://lists.helixcommunity.org/mailman/listinfo/common-dev




More information about the Common-dev mailing list
 

Site Map   |   Terms of Use   |   Privacy Policy   |   Contact Us

Copyright © 1995-2007 RealNetworks, Inc. All rights reserved. RealNetworks and Helix are trademarks of RealNetworks.
All other trademarks or registered trademarks are the property of their respective holders.