Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Отладка сброса (leave)

From Wiki
Jump to: navigation, search
Article Metadata

Статья
Автор: alones (20 Aug 2007)
Последнее редактирование: hamishwillee (19 Oct 2011)
Отладка ситуации сброса - достаточно трудоемкая задача. Эмулирование точки останова каждый раз, когда возникает сброс, позволяет анализировать стек и выявлять ошибку. Для этого можно использовать следующий макрос:
#define __LEAVE_IF_ERR(_c) TInt32 __reason = _c;       \
if (__reason < 0) { \
__BREAKPOINT(); \
User::Leave(__reason); \
}

Вы должны использовать макрос также как User::LeaveIfError(), например

__LEAVE_IF_ERR(iFs.Connet())
This page was last modified on 19 October 2011, at 05:13.
117 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×