Re: Multi pipe error

New Message Reply Date view Thread view Subject view Author view

Allen Bierbaum (allenb++at++NOSPAM.iastate.edu)
Thu, 25 Sep 1997 14:28:43 -0500


Performer assumes that you do not have the multi-keyboard option. So it
is trying to connect to :0.1 and :0.2.

Try adding a line to set the pipe connections string. The function to
note is setWSConnectionName. It specifies the window server to connect
to.

The following code works in the C++ version.

for (loop=0; loop < max; loop++)
    {
        char str[PF_MAXSTRING];
        char pipeStr[PF_MAXSTRING];
         
        pipe[loop] = pfGetPipe(loop);

        // START HERE

        sprintf(pipeStr, ":%d.0", loop); // TKO
        //sprintf(pipeStr, ":0.%d", loop); // SKO
         
        pfNotify(PFNFY_ALWAYS, PFNFY_PRINT, pipeStr);
        pipe[loop]->setWSConnectionName(pipeStr);
        pipe[loop]->setScreen(loop);
     
        // END HERE

               pfPipeWindow *pw = new pfPipeWindow(pipe[loop]);
        sprintf(str, "IRIS Performer - Pipe %d", loop);
        pw->setName(str);
        if (NumScreens > 1)
        {
            pw->setOriginSize(0, 0, 300, 300);
        } else
            pw->setOriginSize((loop&0x1)*315, ((loop&0x2)>>1)*340, 300, 300);
         
        pw->setConfigFunc(OpenPipeWin);
        pw->config();
    }

Hope this help.

-Allen

Haruo NOMA wrote:
>
> Dear Perfomer people,
>
> We have an ONYX with two RE2s. Each pipe have keyboard and mouse to use the
> ONYX with two users individually.
>
> Now, we would like to display two views from different view points on each
> screen. We found a following sample code,
>
> /usr/share/Performer/src/pguide/libpf/C/multipipe
>
> However, when we run this code, we had only three windows on the one screen
> and following error was displayed.
>
> Do we have to set something pre-definition?
>
> -------
>
> > multipipe /usr/share/Performer/data/x29.sv
>
> PF Notice: pfdLoadFile_sv: /usr/share/Performer/data/x29.sv
> PF Warning/Usage: pfPipe::setScreen() pfPipe 1 screen request of 1
> is greater than number of available hardware screens (0 - 0). Clamping to
> screen
> 0
> PF Warning/Usage: pfPipe::setScreen() pfPipe 2 screen request of 2
> is greater than number of available hardware screens (0 - 0). Clamping to
> screen
> 0
> PF Notice: Using 60Hz video rate.
> PF Notice: Initializing stage 0x4 of pipe 2 on screen 0,
> con
> nection ""
> PF Notice: Pipe 2 size: 1280x1024
> PF Notice: Initializing stage 0x4 of pipe 1 on screen 0,
> con
> nection ""
> PF Notice: Pipe 1 size: 1280x1024
> PF Notice: Initializing stage 0x4 of pipe 0 on screen 0,
> con
> nection ""
> PF Notice: Pipe 0 size: 1280x1024
> PF Notice: PipeWin of Pipe 2 opened on screen 0
> PF Notice: PipeWin of Pipe 1 opened on screen 0
> PF Notice: PipeWin of Pipe 0 opened on screen 0
>
> --------
>
> Thank you.
>
> Haruo Noma
>
> ----------------
> Haruo Noma
> ATR Media Integration and Communications Research Lab.
> Tel: +81-774-95-1401 Fax: +81-774-95-1408
> e-mail: noma++at++mic.atr.co.jp
>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 

Allen Bierbaum ISU SE Lab Research Assistant ======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:00 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.