c# - Passing an unmanaged pointer between two AppDomains (By indirect call) -
.net 4.5, 64bit win8
i have 2 msmq running under wcf , hosted under windows activation service.
- execute msmq: responsible calling unmanaged function , obtaining pointer intptr 4gb array in addition other limited size variables. array not important , shouldn't blocking queue until passed db , having queue free priority. passing pointer save msmq (hypothesis).
- save msmq: should save array db across network deallocate unmanaged memory.
the problem here be:
- making sure array deallocated on poison messages , other queue errors. case easy bit.
- passing intptr cross app domains might not possible, recall, old days, pointer values relative (and word offsetting comes mind, or maybe mixing processes , appdomains) app domains , security reasons .net might not allow this? is possible or dreaming, cross domain issue or problem have different title?
n.b. have used netpipes communication before, has queue in middle, netpipes not solution.
Comments
Post a Comment