Re: [MBS] FileMapping : Detach memoryblock?
Am 20.06.2014 um 17:46 schrieb Michael Diehr m...@xochi.com: I'm experimenting with FileMappingMBS. Is there a way to detach the memory block received and then destroy the FileMappingView, without losing the memory block? I'm trying to avoid an extra MemoryBlock copy if possible. doesn'T sound possible. Destroying the file mapping will not allocate new memory for the memoryblock. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] FileMapping : Detach memoryblock?
Am 20.06.2014 um 22:57 schrieb Michael Diehr m...@xochi.com: If I do this, the data ends up blank on the receiving end: dim m as memoryblock (...) fm.CreateMemoryblock(id, m.size) fm.deleteSharedMemory=false // the receiver will handle deleting it (...) fmv = fm.MapView(m,0,m.size) // pass in our memoryblock here we suggest the OS to use a given address from memoryblock, but that fails as far as I see as the memory is already allocated. So the feature may be useless in Xojo. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] FileMapping : Detach memoryblock?
Thanks - perhaps the documentation should be updated for the next release then if it's not working well... On Jun 20, 2014, at 2:01 PM, Christian Schmitz supp...@monkeybreadsoftware.de wrote: Am 20.06.2014 um 22:57 schrieb Michael Diehr m...@xochi.com: If I do this, the data ends up blank on the receiving end: dim m as memoryblock (...) fm.CreateMemoryblock(id, m.size) fm.deleteSharedMemory=false // the receiver will handle deleting it (...) fmv = fm.MapView(m,0,m.size) // pass in our memoryblock here we suggest the OS to use a given address from memoryblock, but that fails as far as I see as the memory is already allocated. So the feature may be useless in Xojo. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info