hello. First off, I am very new to dll coding (meaning tonight) and I need to be able to share a List<bool> and a List<double> between my main application and other applications that can interface indirectly with it.
Basically The mian program will initalize the dll and pass in all the values. Then every about 50ms or so, new values will be given to the dll. I made a basic dll that I can send values to a global list in the dll, but my problem comes from I guess windows creates new memory blocks for each instance of the dll or something, so the my main application communicates with the dll, and the test application communicates with the dll, but neither have the same values, so they cannot speak to eachother.
My problem comes from me never using or implementing anything having to do with shared memory. I am not even sure if I am on the correct track. Would the keyword "stackalloc " have anything to do with this?
Justto give some more background, basically I developed some hardware that speaks to my application with a raw byte stream. Then the program interprets that byte stream into doubles and bools. So my application uses them fine. However others would like to interface their program with the hardware, but instead of re-decoding the stream, just grab the values from a dll somewhere.
I can clarify more if neccessary.
Basically The mian program will initalize the dll and pass in all the values. Then every about 50ms or so, new values will be given to the dll. I made a basic dll that I can send values to a global list in the dll, but my problem comes from I guess windows creates new memory blocks for each instance of the dll or something, so the my main application communicates with the dll, and the test application communicates with the dll, but neither have the same values, so they cannot speak to eachother.
My problem comes from me never using or implementing anything having to do with shared memory. I am not even sure if I am on the correct track. Would the keyword "stackalloc " have anything to do with this?
Justto give some more background, basically I developed some hardware that speaks to my application with a raw byte stream. Then the program interprets that byte stream into doubles and bools. So my application uses them fine. However others would like to interface their program with the hardware, but instead of re-decoding the stream, just grab the values from a dll somewhere.
I can clarify more if neccessary.
Comment