Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Larger image problems
Larger image problems [message #452343] Thu, 17 March 2005 15:14
Robert Bacs is currently offline Robert BacsFriend
Messages: 165
Registered: July 2009
Senior Member
Hi,

I have the following problem:
...
Image image = new Image(getDisplay(), 4000, 4500);
...

With the above line I get th following error:

org.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:2717)
at org.eclipse.swt.graphics.Image.init(Image.java:1366)
at org.eclipse.swt.graphics.Image.<init>(Image.java:161)
at ro.zerosoft.swt.PrintPreview.<init>(PrintPreview.java:107)
at ro.zerosoft.swt.PrinterClass.<init>(PrinterClass.java:70)
at ro.zerosoft.swt.PrinterClass.<init>(PrinterClass.java:49)
at
ro.zerosoft.swt.test.ComponentTest.createPrintPreviewSample( ComponentTest.ja
va:965)
at ro.zerosoft.swt.test.ComponentTest.main(ComponentTest.java:5 9)
Exception in thread "main"

I've searched over the newsgroup and I find an unanswered post with
"Workaround for larger images ?" subject and found in the MSDN that only on
"Win95/98/ME: The created bitmap cannot exceed 16MB in size.", I'm running
on Windows 2000.
So my question is that there is a limitation on Win 2000 also, or there is a
problem in JNI of SWT ?

Regards,
Boby
Previous Topic:3.1M5 tree sorting
Next Topic:difference between focusin and activation events
Goto Forum:
  


Current Time: Tue Nov 12 18:36:07 GMT 2019

Powered by FUDForum. Page generated in 0.02150 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top