×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    40

    KERN-EXEC3 in uploading file using RHTTPSession

    Hi all,

    I am new to the communications part.
    I want to upload a file with a multipart upload to a server.
    I am using an example from Forum Nokia to see how this can be done.

    The problem I am facing is while uploading a file my app. crashes with KERN-EXEC3.

    What I have come to know till now is....

    The framework calls "GetNextDataPart" and "ReleaseData" for a couple of times.
    but before the whole file gets uploaded the function "MHFRunL" gets called with the event
    'EGotResponseHeaders' and after that the app. crashes with KERN-EXEC3..

    The question I am having is..Is it normal behavior if the function "MHFRunL" gets called in middle
    of uploading. Or is it the case that it should only get called after whole the file gets uploaded..


    If it is a normal behaior then what could be the reason behind KERN-EXEC3 ?
    And if it is not a normal behavior why the function "MHFRunL" gets called in middle..How this could be avoided?

    Anyone any idea please ?

    Thanks in advance,
    Utk

  2. #2
    Regular Contributor
    Join Date
    Mar 2005
    Location
    Mumbai
    Posts
    212

    Re: KERN-EXEC3 in uploading file using RHTTPSession

    hi utk ,

    did u solve this problem , facing the same thing.

  3. #3
    Regular Contributor
    Join Date
    Mar 2005
    Location
    Mumbai
    Posts
    212

    Re: KERN-EXEC3 in uploading file using RHTTPSession

    This porblem only happens in nokia 3230 dont know why,

    but the only solution that i have found is this


    Code:
    TBool CHTTPExampleEngine::GetNextDataPart(TPtrC8& aDataPart)
    {
    	TBool retVal = EFalse;
       	aDataPart.Set(iPostData->Des());
       	retVal = (aDataPart.Length() == 0);
       	iDataAvailable=retVal;
       	return retVal;
    }
    and then in the MHFRunL... Function this is what i did
    Code:
    // Release buf
    CleanupStack::PopAndDestroy(buf);
    
    if(!iDataAvailable)
    {
    	iRunning=EFalse;
    	iObserver.ResponseReceivedL(*iResponseBuffer);
    }				
    else
    	dataSupplier->ReleaseData();

Similar Threads

  1. can we get the source file from jar file..
    By bb_sathya in forum Mobile Java General
    Replies: 6
    Last Post: 2005-12-28, 13:14
  2. Common problem: wrong file format "exception"
    By lukaszpl in forum Mobile Java General
    Replies: 0
    Last Post: 2005-12-05, 17:09
  3. Replies: 1
    Last Post: 2005-05-26, 14:22
  4. ROM file reading too short
    By itsxbv in forum Symbian
    Replies: 0
    Last Post: 2004-06-17, 11:48
  5. Replies: 0
    Last Post: 2002-06-10, 12:24

Posting Permissions

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