The CLIPBOARD may sink your app (OpenInsight 16-Bit Specific)
At 25 MAR 2002 08:32:36AM Oystein Reigem wrote:
Getting the contents of the Windows Clipboard, as in
Clip=Get_Property( "CLIPBOARD", "TEXT" )can be dangerous indeed. If the Windows clipboard contains sufficient amounts of text (]64K) your app will hang, and your computer will need a reboot.
At least this is my experience when tested in a Test Run on a single user developer OI 3.61 on XP Pro. (Yes, the reboot seemed to be necessary. Killing NTVDM wasn't enough to get OpenInsight on an even keel.)
The aforementioned problem can occur if the clipboard contains text copied/cut from a different program.
I also tried a manual paste with a too large chunk of text - into an edit box. That went well, i.e, nothing got pasted, but at least the app survived.
Any chance of getting this fixed?
- Oystein -
At 26 MAR 2002 09:40AM Richard Channer wrote:
I'm guessing this will not occur when using OI32 ?
Is the 16-bit OI still being developed or will problems with the 16-bit product receive workarounds with development being concentrated on the 32-bit product?
Not concerned either way - but, it would be nice to know what the future holds.
Richard
At 26 MAR 2002 10:20AM Oystein Reigem wrote:
Richard,
I certainly hope the problem goes away with OI32.
For some reason it bugs me that the manual paste works but the programmatic not. Some programmer did not do that CLIPBOARD object properly.
It would be interesting to know if anybody has used the Windows Clipboard API functions. And if these functions allow one to circumvent the problem.
- Oystein -
At 26 MAR 2002 01:30PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
We used the TestClipboard function in our Sysknowledge app to check if the clipboard contains TEXT before allowing a PASTE operation. That worked fine. Haven't tried the rest - relied on OI :)
World leaders in all things RevSoft