How about streaming the object out using Delphi's internal streaming to a
memory mapped file?? And re-creating at the other end using a TReader etc.

Myles.


-----Original Message-----
From: Phil Scadden [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 17 July 2001 3:54 p.m.
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Sharing a bitmap between processes


> You can use the DuplicateHandle Win32 API function
> to create a handle to a graphical object in a
> different process.   There are access restrictions
> and all that to worry about naturally.
> 
> But if performance is an issue i'd expect that to
> be much faster than sharing a memorymapped
> metafile or allocating the memory yourself
> and writing DIB data to it.

This is kind of what I am looking for, but my documents dont mention HBitmap
as one of the types of handle that you can use DuplicateHandle for. Are you
sure
that you can do this?

----------------------------------------------------------
Phil Scadden, Institute of Geological and Nuclear Sciences
41 Bell Rd South, PO Box 30368, Lower Hutt, New Zealand
Ph +64 4 5704821, fax +64 4 5704603
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to