continue reading an open binary stream

  1. 4 weeks ago

    I've opened a binary stream under one control and still can not continue to read the stream under another control.

    (oddly I was able to do this with the same code in an older RealBasic app that I am converting to XOJO)

    I get a nil object error when I try to continue reading the stream in another control.

    The binary stream is globally available through a dimension statement contained in a module.

    the reference to the stream must be in a scope accessible by both controls, and not closed by either until both are done

  2. Dave S

    Sep 16 Answer San Diego, California USA

    the reference to the stream must be in a scope accessible by both controls, and not closed by either until both are done

  3. Somehow the scope had changed from global to private during the conversion. Fixed.

    Thanks Dave.

or Sign Up to reply!