access open binarystream globally

  1. last week

    Once a binary stream has been opened and sequentially read under one control, can that same binary stream be continued to be read under another control.

    I suppose what I am asking is, can a binary stream be accessed globally.

    Sure, just store it somewhere accessible like a Global or Protected module property, class' Shared Property, or, if all those controls are in the same window, a window property.

    If you try to access that BinaryStream from Threads, best protect access with a Semaphore or CriticalSection.

  2. Kem T

    Sep 10 Pre-Release Testers, Xojo Pro, XDC Speakers Answer Connecticut

    Sure, just store it somewhere accessible like a Global or Protected module property, class' Shared Property, or, if all those controls are in the same window, a window property.

    If you try to access that BinaryStream from Threads, best protect access with a Semaphore or CriticalSection.

  3. Thanks Kem.

or Sign Up to reply!