×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Mar 2005
    Location
    Vadodara, Gujarat (INDIA)
    Posts
    29

    StringLoader::LoadLC() fails...

    Hi,

    I am using HTTP Post method to communicate with the server.
    Following is the code snippet...

    RHTTPResponse response = aTransaction.Response();
    TInt status = response.StatusCode();

    // retrive status text
    TBuf<KMaxStatusTextLength> statusText;
    statusText.Copy( resp.StatusText().DesC() );

    // Load a string from the resource file and add status and status text
    HBufC* textResource = StringLoader::LoadLC( R_HEADER_RECEIVED, statusText, status );
    iObserver.ClientEvent( *textResource );
    CleanupStack::PopAndDestroy( textResource );

    Where R_HEADER_RECEIVED is "Header data received: %U %N"

    My code fails at "StringLoader::LoadLC"... WHY?

    Any type of help is appreciated.

    Regards,
    Mehul

  2. #2
    Regular Contributor
    Join Date
    Apr 2008
    Location
    Chennai,India
    Posts
    95

    Re: StringLoader::LoadLC() fails...

    Does it show any error? so that v can find out something
    Cheers,
    Paul

    --------------------------------------------------------------------

    Planning Without Action is Futile, Action Without Planning is Fatal.

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,740

    Re: StringLoader::LoadLC() fails...

    LoadL: You may consider TRAP-ing and checking the error code.

  4. #4
    Registered User
    Join Date
    Mar 2005
    Location
    Vadodara, Gujarat (INDIA)
    Posts
    29

    Re: StringLoader::LoadLC() fails...

    Yes... I am getting STRINGLOADER 2 Panic on my simulator...

    I have linked my project with "commonengine.lib" library..

    also the resource string is present in .rsg file.

    Hope this helps...

    Regards,
    Mehul

  5. #5
    Registered User
    Join Date
    Mar 2005
    Location
    Vadodara, Gujarat (INDIA)
    Posts
    29

    Re: StringLoader::LoadLC() fails...

    I am getting "STRINGLOADER 2" Panic on my simulator.

  6. #6
    Registered User
    Join Date
    Nov 2007
    Posts
    384

    Re: StringLoader::LoadLC() fails...

    check whether string u r tring to load is available in resources or not.Also check the nos of parameter and type of parameters.

    sometimes invalid parameters caused this err

  7. #7
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: StringLoader::LoadLC() fails...

    Invalid parameters always cause this arror
    EKeyStringNotFound = 2 (The key string wasn't found in formatting.)

    http://www.forum.nokia.com/document/...ingLoader.html

    I suggest you use something like CCoeEnv::AllocReadResourceAsDes16L() to read the string and see what it actually contains.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

Similar Threads

  1. CVideoPlayerUtility video streaming fails on 7610?
    By k4l4 in forum Symbian Networking & Messaging (Closed)
    Replies: 10
    Last Post: 2008-11-18, 16:18
  2. Replies: 8
    Last Post: 2008-09-16, 09:10
  3. HELP: HTTPS connection always fails!
    By xiaomingzhou in forum Symbian Networking & Messaging (Closed)
    Replies: 11
    Last Post: 2008-04-07, 05:14
  4. Replies: 5
    Last Post: 2006-12-08, 01:03
  5. Replies: 1
    Last Post: 2002-05-16, 19:08

Posting Permissions

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