Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Nov 2006

    STORE-Stream 13 panic while reading data from the stream

    I'm trying to read data from the stream until the desired delimiter is found. I know that in some specific situation delimiter will not exist. But the function
    void ReadL(TDes16 &aDes, TChar aDelim);
    should read the whole stream in this case. It breaks instead with the STORE-Stream 13 panic code.
    As I read in the docs' the panic occurs for some operation that I'm not calling.
    inline TStreamTransfer(TInt aMaxLength);
    In debug mode, the function raises a STORE-Stream 13 panic, if this value is negative.
    The question is:
    Can I search for a certain character in the stream (it's RReadStream)?
    If it's the API bug, maybe there's some workaround?

    my code below...
    	TUint size = aStream.Source()->SizeL();
    	HBufC* streamBuf = HBufC::NewL(size);
    	TChar a = KColon()[0];
    	TPtr16 ptrStr(streamBuf->Des());
    	aStream.ReadL(ptrStr, a);
    Krzysztof Kucharewicz

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2004

    Re: STORE-Stream 13 panic while reading data from the stream

    A HBufC's max size can be greater than that requested (it can get rounded up), so if this is happening it may cause you problems if the delimiter isn't present and the store is trying to fill the HBufC with more data than there is present in the stream.
    Try using an RBuf instead of a HBufC if this is the problem.

Similar Threads

  1. Problem in reading data from socket
    By srkreddy999 in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2009-07-06, 16:05
  2. Replies: 2
    Last Post: 2004-09-15, 22:47
  3. Getting junk data along with start CIMD Byte stream
    By sushil in forum General Messaging
    Replies: 2
    Last Post: 2002-09-18, 13:15
  4. Replies: 1
    Last Post: 2002-08-28, 04:35
  5. Using protocol file:// with object connector
    By afinistr in forum Mobile Java General
    Replies: 2
    Last Post: 2002-06-24, 07:12

Posting Permissions

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