Re: Copying text to the clipboard in HTML format

new topic     » goto parent     » topic index » view thread      » older message » newer message

> Hi,
> 
> I point your attention to the following sentences:
> A memory object that is to be placed on the clipboard should be allocated by
> using the GlobalAlloc function with the GMEM_MOVEABLE flag.
> After a memory object is placed on the clipboard, ownership of that memory
> handle
> is transferred to the system. 
> 
> My guess is:
> You use allocate_string() Instead of GlobalAlloc().
> As the system take ownership of the memory allocated, when you want to  free()
> it there is an access denied error.
> 
I believe you hit the nail on the head!  That's what I missed.

Thanks a bunch!

Jonas Temple
http://www.yhti.net/~jktemple

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu