View Full Version : networking

08-22-2003, 02:11 PM
I was trying out the networking demo (viz_Duckwalk) which works just fine but when I tried writing my own script - basically te same script with a few different objects, I get an error message, saying that

TypeError: send() takes exactly 2 arguments (4 given)

As it's the same commands as the demo, I'm confused as to why it isn't working. I didn't get these errors with earlier versions of Vizard I had (1.096) - I am testing this with v2.08

Also, I occasionally get an error with the Window Title

Producer: Internal Error: Can't Set the PixelFormat
The parameter is incorrect

Then I get a bunch of errors 'detected OpenGl error 'invalid operation after applying attribute Viewport 00BD5050' or something like that. Then the program crashes with a dialog about accessing some memory location (typical windows error msg).

Thanks for any insight.

08-22-2003, 03:40 PM

The error you are getting leads me to believe that you are creating a MAILBOX object instead of a NETWORK object. Can you double check that you are calling
and not

About the other errors, are you getting them in your networking script or a different one? Are these errors caused when you use a specific function or feature? Thanks for reporting these errors to us.

08-25-2003, 08:49 AM
Yes, using the viz.NETWORK flag did the trick. Is this a change from older versions (i.e., v1.08)? I was using an older script file as a template which used viz.MAILBOX.

I'll try to debug the other errors for more info

08-25-2003, 10:07 AM

The old mailbox should work fine, but one thing to keep in mind is that with the old mailbox you can only send a single string to the other computer. With the newer Network object you can send an arbitrary amount of any data type (string,integer, floating point number). You were getting the error because you were trying to send more than one parameter to the mailbox, but it was expecting a single string. Hope this clears it up.