Results 1 to 2 of 2

Thread: get stream position

Hybrid View

  1. #1

    Thread Starter
    Registered User
    Join Date
    Jul 2001
    Posts
    283

    get stream position

    i create a new stream, open an xml file for read,
    and use myDataSet.loadXml(mystream)
    now, on a separate thread, that runs only while the dataset is being loaded i keep printing stream.getPosition to the screen.
    it goes
    0
    0
    0
    18234
    18234
    ...
    and then it does 18234 about 50 times.. 18234 is the length of the stream.
    i guess this has to do with buffering or something, but how the hell can i get the actual position that the stream is being read from, avoiding this error?

    any ideas? maybe i should use different objects and methods??

    thanks already...

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Show us the code.
    I don't live here any more.

Posting Permissions

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



Click Here to Expand Forum to Full Width