NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: Limit of 32 Canvas

Hi Hannes,

> My application creates more than 32 DisplayImpl (in different windows). On 
> creating the 32nd object an Exception occurs in the
> javax.media.j3d.MasterControl.getCanvasBit() method. I decompile this class. 
> The source code is the following one:
> 
> int getCanvasBit() {
>    synchronized (canvasBitFreeList) {
>       if (canvasBitFreeList.size() == 0) {
>           if (canvasBitCount > 31)
>              throw new InternalError();
>            return 1 << canvasBitCount++;
>       }
>       return ((Integer) canvasBitFreeList.removeLastElement()).intValue();
>   }
> }
> 
> I know that this is not a visad class, but does anyone known the reason for 
> this limitation (maybe a limit in the opengl API)

This would be a great question for java3d-interest@xxxxxxx. See:

  http://java.sun.com/products/java-media/3D/forDevelopers/interest_group.html

for how to subscribe and post.

Cheers,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


  • 2002 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: