#bcalhelp
Is the behavior of the HttpContent in this case intentional?
My expectation for both procedures is that InStream should be empty, as the "source" the stream reads from is unallocated from memory after the local function finishes.
But after testing it, the HttpContent stays in memory...
Is the behavior of the HttpContent in this case intentional?
My expectation for both procedures is that InStream should be empty, as the "source" the stream reads from is unallocated from memory after the local function finishes.
But after testing it, the HttpContent stays in memory...
Comments
Just curious - any change if you do a Clear(InStr) and Clear(Text) before calling ProcessFileStream2(InStr) in ProcessBothFiles()?
I was looking at a procedure from the new ExtFileStorage module that returns an InStr, was curious how they got it to work, and saw the “Content trick”
Now I’m not sure if I can safely use this pattern in my code as well…
In my opinion this is a hack. I'd rather have a solution that works with properly scoping the variables.