×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Oct 2004
    Posts
    321

    Question asynchronus http request and crash in application

    Dear All,

    I am facing below problem.


    I have one application and one http lib.

    I am giving a http request from application to http. then the request is getting processed and as it is asychronous the mhfRunL is getting called in http. once all data is received i am getting THTTPEvent::ESucceeded.

    the problem is i want to give multiple request. but the sdk tells that one transaction is for one request and one response.

    then how can i handle multiple requestes,(i think having multiple transaction wil help me ) and hence then onwards when mhfruL() gets called how i can know for which request of mine i am getting the response.

    or if i want to give sequential requests, once i get THTTPEvent::ESucceeded i am not able to give one more request from application as the function called from mhfrunL()(i am calling one function of application ProsessingComplete() from mhfRUnL()) will be in http context and hence the application crahes.

    how to solve this problem

    with regards
    VK
    Last edited by vinayakak; 2008-02-06 at 03:19. Reason: spell check

  2. #2
    Regular Contributor
    Join Date
    Dec 2004
    Posts
    50

    Re: asynchronus http request and crash in application

    Hi VK,
    you can handle multiple request in callback function HTTPEvent(TInt EventType)
    observe THTTPEvent::EResponseComplete in HTTPEvent(TInt aEventType) and after first Request processing complete you can fire second request.

    OR
    You can provide url of the folder which contains multiple file which you want to fetch. like http://wap.abc.com/clients/test/

    And If you want to request multiple url from appview then observe THTTPEvent in Callback function HTTPEvent(TInt aEventType) then application won't crash.

    vikas,
    Mauj.

Similar Threads

  1. Motorola Razor V3 'Application Error' using J2ME and Bluetooth
    By setorre in forum Mobile Java General
    Replies: 5
    Last Post: 2009-03-30, 05:15
  2. http crash at end of transaction
    By s4028469 in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2008-02-15, 12:54
  3. Program Crash at CActiveSchdeuler::Start()
    By avibatbha in forum Symbian
    Replies: 3
    Last Post: 2008-01-04, 13:27
  4. 6230i & 6021 reboots on http open.
    By Martin Valfridsson in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2006-02-07, 14:00
  5. HTTP in NOKIA7650
    By thomasca in forum Mobile Java General
    Replies: 0
    Last Post: 1970-01-01, 02:00

Posting Permissions

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