Article 60TQ5 Is there a maximum size for Windows clipboard data?

Is there a maximum size for Windows clipboard data?

by
Thom Holwerda
from OSnews on (#60TQ5)

A customer had a program that opened a very large spreadsheet in Excel. Very large, like over 300,000 rows. They then selected all of the rows in the very large spreadsheet, copied those rows to the clipboard, and then ran a program that tried to extract the data. The program used the GetClipboardData function to retrieve the data in Rich Text Format. What they found was that the call to GetClipboardData was returning NULL. Is there a maximum size for clipboard data?

No, there is no pre-set maximum size for clipboard data. You are limited only by available memory and address space.

However, that's not the reason why the call to GetClipboardData is failing.

Edge cases are so much fun to read about - they give so much insight into how certain things are done programmatically, even for a non-programmer such as myself.

External Content
Source RSS or Atom Feed
Feed Location http://www.osnews.com/files/recent.xml
Feed Title OSnews
Feed Link https://www.osnews.com/
Reply 0 comments