VVVV.Utils.SharedMemory

Hey!

am trying to make a hacky approach for getting data out of Textures into Images using AsVideo/VideoOut (SharedMemory) then reading shared memory in a plugin.

currently I have:

FSegment.Lock();
			System.Type type = FSegment.GetType();
			Object data = FSegment.GetData();

			FSegment.Unlock();

Visual Studio reports that FSegment.currentSize = 12 (which is correct as i’m sending 4 RGB test pixels)
But anyway, i’m not sure how to get the data out, and also currentSize is private.

i get an arithmatic exception at FSegment.GetData(); (i presume this function is throwing a divide by zero)

any thoughts / examples?

aha
it’s setting the size manually itself in the constructor, so that’s not much use