About hour ago, I'm trying one more time to debug my assembly.
So, I think (am i right?), there is no problem in IssueHTTPGetL(), because:
when I'm toggle breakpoint to view value of "aEvent" (in file "WebClientEngine.cpp" - generated, after adding to the container of the app - web client component, in Carbide.C++ UI design),
Code:
// ----------------------------------------------------------------------------
// CWebClientEngine::MHFRunL()
// Inherited from MHTTPTransactionCallback
// Called by framework to pass transaction events.
// ----------------------------------------------------------------------------
//
void CWebClientEngine::MHFRunL( RHTTPTransaction aTransaction,
const THTTPEvent& aEvent )
{
// Next line contain breakpoint;
switch ( aEvent.iStatus )
{
case THTTPEvent::EGotResponseHeaders:
{
in the emulator the value ("aEvent") contained number "4", after next step of debugging - "5", then "6" and the last is "8" - after that, request is successfully sends, but...
on-device debugging, this value of the "aEvent" contained "-5120"
- it is wrong, but why "aEvent" receive the value "-5120" ?
So, I think, that after receiving "-5120" application just close the transaction:
Code:
default:
// There are more events in THTTPEvent, but they are not usually
// needed. However, event status smaller than zero should be handled
// correctly since it's error.
{
iObserver.ClientUnknownEventL( *this, aEvent.iStatus );
if ( aEvent.iStatus < 0 )
{
// Just close the transaction on errors
aTransaction.Close();
iRunning = EFalse;
}
}
break;
and do not close message "Please wait...".
Am I right?
Please, help me!