B
Bob Rock
Hello,
converting from the managed to the unmanaged world (and viceversa strings)
and byte arrays is something I do often and I'd like to identify the most
correct and efficient way to do it.
Also, I was wondering could there be issues in not making copies when
converting??? I was thinking, when "pointing" to the same data with both
managed and unmanaged strings/arrays couldn't there be issues such as the
garbage collector trying to reclaim memory that may not be freed (read only
memory of global unmanaged arrays and strings) or should not be yet freed
(managed strings also pointed by unmanaged string pointers)??? Should I then
always be making copies???
Bob Rock
converting from the managed to the unmanaged world (and viceversa strings)
and byte arrays is something I do often and I'd like to identify the most
correct and efficient way to do it.
Also, I was wondering could there be issues in not making copies when
converting??? I was thinking, when "pointing" to the same data with both
managed and unmanaged strings/arrays couldn't there be issues such as the
garbage collector trying to reclaim memory that may not be freed (read only
memory of global unmanaged arrays and strings) or should not be yet freed
(managed strings also pointed by unmanaged string pointers)??? Should I then
always be making copies???
Bob Rock