I am using TCommDbConnPref to discover the different IAPs available.

When I run my app in phone debug mode my TCommDbConnPref object is described as Invalid Format.

When I run it in emulator mode it is ok.

I notice that the first phase constructor is not called in Phone debug mode but it is called in emulator mode.

CHTTPEngine::CHTTPEngine(MClientObserver& aObserver)
: iObserver(aObserver),
iPostData(NULL),
iRunning(EFalse),
iConnectionSetupDone(EFalse),
iPrevProfileId(-1)
{

}
// Now we have the iap Id. Use it to connect for the connection
TCommDbConnPref connectPref;
// Setup preferences
connectPref.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);
// Sets the CommDb ID of the IAP to use for this connection
connectPref.SetIapId(iSelectedIap);
// Start connection
------> User::LeaveIfError(iConnection.Start(connectPref)); //<------------------failing here
Appreciate any guidance