Re: SendMessage crashing
- From: Tom Esh <tjeshGibberish@xxxxxxxxxx>
- Date: Sat, 30 Apr 2005 21:32:26 -0400
On Sat, 30 Apr 2005 20:00:36 -0400, "Casey Provance"
<casey@xxxxxxxxxxx> wrote:
>Okay, I am going to throw this out here simply as a thought. I am writing
>this on the fly, so it's not been tested, nor do I even know if it will
>work.
>
>Couldn't you pass the pointer of your UDT to the other program and read the
>UDT from the pointer from there...using the a version of the RtlMoveMemory
>API? I've done something similiar to get a data structure from another
>process...maybe it could apply here as well?
Most definitely not. You'll earn an access violation error and the app
will be terminated. In Win32 the address space of each process is
~private~. The OS provides a number of alternate methods for
marshalling shared data cross-process including...
COM
WM_COPYDATA
DDE
Pipes Api functions
Api functions to create and manage a shared mem block manually.
-Tom
MVP - Visual Basic
(please post replies to the newsgroup)
.
- Follow-Ups:
- Re: SendMessage crashing
- From: Casey Provance
- Re: SendMessage crashing
- References:
- Re: SendMessage crashing
- From: Tom Esh
- Re: SendMessage crashing
- From: Adam Honek
- Re: SendMessage crashing
- From: Casey Provance
- Re: SendMessage crashing
- Prev by Date: Re: SendMessage crashing
- Next by Date: Re: SendMessage crashing
- Previous by thread: Re: SendMessage crashing
- Next by thread: Re: SendMessage crashing
- Index(es):
Relevant Pages
|