[Question] Maximum pixmap size

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Question] Maximum pixmap size

Ladislav Lenart
Hello,

I am running VW7.4.1 on Linux/X11, 3GHz Intel Pentium IV with 1GB RAM.
When I evaluate the follwing code, I get a primitive failed error for
all pixmaps except the first one:

   p_ok := Pixmap extent: 8191@8191.
   p_ok close.

   p_ko1 := Pixmap extent: 8192@8191.
   p_ko1 close.

   p_ko2 := Pixmap extent: 8191@8192.
   p_ko2 close.

   p_ko3 := Pixmap extent: 8192@8192.
   p_ko3 close.

My questions:
   * Where this limitation come from given that my machine has enough
     free memory to allocate the pixmap (more than 200MB)?
   * Is this limit caused by underlying X11 or OS?
   * If so, what is the maximum size of a pixmap on Windows?
   * If not, how can I change this limit?

Thank you,

Ladislav Lenart

Reply | Threaded
Open this post in threaded view
|

Re: [Question] Maximum pixmap size

eliot-2
Hi Ladislav,

Ladislav Lenart <[hidden email]> wrote:

| Hello,

| I am running VW7.4.1 on Linux/X11, 3GHz Intel Pentium IV with 1GB RAM.
| When I evaluate the follwing code, I get a primitive failed error for
| all pixmaps except the first one:

|    p_ok := Pixmap extent: 8191@8191.
|    p_ok close.

|    p_ko1 := Pixmap extent: 8192@8191.
|    p_ko1 close.

|    p_ko2 := Pixmap extent: 8191@8192.
|    p_ko2 close.

|    p_ko3 := Pixmap extent: 8192@8192.
|    p_ko3 close.

| My questions:
|    * Where this limitation come from given that my machine has enough
|      free memory to allocate the pixmap (more than 200MB)?
|    * Is this limit caused by underlying X11 or OS?

Yes.  On X11 we use XCreatePixmap.  WHile the manual page isn't specific about the maximum extent it does imply that there are limits; this from XCreatePixmap(3X11):

       BadValue  Some numeric value falls outside the range of values accepted
                 by the request.  Unless a specific range is specified for an
                 argument, the full range defined by the argument's type is
                 accepted.  Any argument defined as a set of alternatives can
                 generate this error.


|    * If so, what is the maximum size of a pixmap on Windows?

On indows we use CreateCompatibleBitmap.
The Microsoft "manual page" is entirely vague on the subject:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_1cxc.asp

|    * If not, how can I change this limit?

I guess you'd need to create a "segmented pixmap" at the VI level which maintained a number of pixmaps and replicated operations above the regions, clipping as appropriate.  Not much comfort I'm afraid.

---
Eliot Miranda                 ,,,^..^,,,                mailto:[hidden email]
VisualWorks Engineering, Cincom  Smalltalk: scene not herd  Tel +1 408 216 4581
3350 Scott Blvd, Bldg 36 Suite B, Santa Clara, CA 95054 USA Fax +1 408 216 4500