Re: Problem with copying text to the Windows clipboard
- Posted by jacques Mar 21, 2009
- 1048 views
@Bernie, Clarification about GloblaAlloc() Modern OS works in protected mode. This means that the OS allocate memory space for each application and other applications can't access that memory. Euphoria heap is in application memory space and that can't be accessed by the clipboard. This is why GlobalAlloc() is used. This function allocate memory on system wide heap. That is avalaible to all applications. So that the clipboard can access this data and copy it in its own memory space. I didn't study the euphoria source code but don't think it use GlobalAlloc() when a user use allocate(). If so the code should be corrected, this a major bug.
This wrong, I should have checked before writing. http://msdn.microsoft.com/en-us/library/aa366596(VS.85).aspx