×

Discussion Board

Results 1 to 5 of 5

Thread: SenXml trouble

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    3

    SenXml trouble

    Code:
    void Ca_RegisterView::HandleWebClient1BodyReceivedL( 
    		CWebClientEngine& anEngine, 
    		const TDesC8& aBodyData)
    	{		 	
    	// Create the xml reader and DOM fragment and associate them with each other 
    	CSenXmlReader* xmlReader= CSenXmlReader::NewL();
    	CleanupStack::PushL(xmlReader);
    	CSenDomFragment* domFragment= CSenDomFragment::NewL();
    	CleanupStack::PushL(domFragment);
    	xmlReader->SetContentHandler(*domFragment);
    	domFragment->SetReader(*xmlReader);
    	// Parse the xml into the domfragment
    	//open a filesession		
    	TRAPD( err, xmlReader->ParseL(aBodyData));
    	// Get the tracks as an array of elements
    	_LIT8(KResp,"resp");
    	RPointerArray<CSenElement>& xmlDocument = domFragment->AsElement().Element(KResp)->ElementsL();
    	const TInt Count(xmlDocument.Count());
    	for (TInt i(0) ; i < Count; ++i)
    		{// Get this tracks details		
    		}
    	CleanupStack::PopAndDestroy(2, xmlReader);
    	RunListQuery2L();
    	}
    The xml code of aBodyData is
    Code:
    <?xml version="1.0" encoding="utf8"?>
    <resp host="90.156.212.76:81" uri="/onair/register" status="200">
    <login from="79.133.138.249" at="NOW()">the1d</login>
    </resp>
    The simulator does not executes fragment "TRAPD( err, xmlReader->ParseL(aBodyData));" and switching off.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: SenXml trouble

    You can check its log as a first try: http://wiki.forum.nokia.com/index.php/Epocwind.out
    Most probably you have a panic (http://wiki.forum.nokia.com/index.ph...ded_panic_code), and you are executing your code directly (http://wiki.forum.nokia.com/index.ph...arbide.c%2B%2B), that is why it closes when the application dies.
    If that is the case, you may want to try enabling Just In Time debugging in the preferences of the emulator (visit http://wiki.forum.nokia.com/index.ph...ge_in_emulator if you can not get to the properties window), then the debugger will show you the exact location of the panic.

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    3

    Re: SenXml trouble

    Quote Originally Posted by wizard_hu_ View Post
    You can check its log as a first try: http://wiki.forum.nokia.com/index.php/Epocwind.out
    Most probably you have a panic (http://wiki.forum.nokia.com/index.ph...ded_panic_code), and you are executing your code directly (http://wiki.forum.nokia.com/index.ph...arbide.c%2B%2B), that is why it closes when the application dies.
    If that is the case, you may want to try enabling Just In Time debugging in the preferences of the emulator (visit http://wiki.forum.nokia.com/index.ph...ge_in_emulator if you can not get to the properties window), then the debugger will show you the exact location of the panic.
    Thank you. Panic SenXml 4 was found. But i don't know how to know what this panic means.

  4. #4
    Registered User
    Join Date
    Apr 2009
    Posts
    3

    Re: SenXml trouble

    This is the scrinshot of display when the error happened.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: SenXml trouble

    According to that screenshot you are Running your application - however you should Debug it (the little green Bug on the left of the "Play" button).

Similar Threads

  1. sms font trouble (nokia 6120c)
    By PsyAfter in forum General Messaging
    Replies: 2
    Last Post: 2007-10-12, 08:31
  2. Nokia PCSuite setup trouble: the ultimate solution?
    By surfmaxx in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2006-10-04, 09:52
  3. Jpeg-Support - any trouble with special models
    By Frankee in forum Mobile Java General
    Replies: 0
    Last Post: 2004-02-16, 10:56
  4. image/vnd.nokia-wallpaper trouble
    By Jorrti in forum General Messaging
    Replies: 1
    Last Post: 2003-02-18, 09:17
  5. P800 J2ME game. i'm in trouble because of keypad
    By shahzad73 in forum Mobile Java General
    Replies: 0
    Last Post: 2002-11-21, 03:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×