JetPielut said:
error that the file size is too large for the clipboard. Is there any way
to
dramatically increase the usable file size for the clipboard?
Not really. There is no fixed capacity for the clipboard. An application
places data into the clipboard by calling the Win32 SetClipboardData()
function. This allocates memory for the data by calling GlobalAlloc(). If
the call to GlobalAlloc() fails with a "not enough available memory", you'll
get an error message. So basically, the room for clipboard data is the
current virtual memory available to the application. For a 32-bit process,
this will be 2GB, minus whatever the application has already allocated
(including its own code)..
There's no registry key that means "Use a small clipboard, unless this key
is turned off" or the like; the clipboard can always use as much free memory
as is available.
By design, the clipboard is an in-memory form of inter-process communication
(IPC). That makes it very easy and simple to use (for both the user, and for
the application's programmer); but means its capacity is more limited than
other more complex forms of IPC (named pipes, RPC, message queues, etc).
In general, the way to get more capacity would be to have more available
memory within the application's virtual address space. One way to do this
would be to run a 64-bit application, on 64 bit Windows. This dramatically
increases the memory available. But that's only a workaround if your
application is available in a 64-bit version.
Handling the enormous objects generated by multimedia applications is one of
the good reasons for moving to 64 bits.
Hope it helps,
Andrew