Not sure why I am receiving this error. I just updated from 7.4 to 7.6 and now I get this error when I try to run my program.
Too many arguments to Port->create(). Expected at most 1. Unknown program: Port->create(({"C:/EMAGE/kernel.pike"})) C:/EMAGE/kernel: C:/EMAGE/kernel(ANY:({ /* 1 element */ "C:/EMAGE/kernel.pike" }))->create(@0=({"C:/EMAGE/kernel.pike"})) C:/Program Files/Pike/lib/modules/Stdio.pmod/module.pmod:1277: C:/EMAGE/kernel(A NY:({ /* 1 element */ "C:/EMAGE/kernel.pike" }))->create(@01,0,0)
All I am doing is inheriting Stdio.Port so I can use the bind function. This worked before in 7.4. Any help would be appreciated.
_______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com
The main program now gets the command line argument passed to create(). Since you inherit Stdio.Port and don't provide a create() of your own, they get passed on to the create() function in Stdio.Port, which doesn't like them.
But inheriting Stdio.Port from your main program is bad style anyway. What you're saying is that your program is a kind of port, which is nonsensical. Create a proper class for your port, and instantiate it from your main function.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2004-10-13 14:13: Subject: port problem when update from 7.4 to 7.6
Not sure why I am receiving this error. I just updated from 7.4 to 7.6 and now I get this error when I try to run my program.
Too many arguments to Port->create(). Expected at most
Unknown program: Port->create(({"C:/EMAGE/kernel.pike"})) C:/EMAGE/kernel: C:/EMAGE/kernel(ANY:({ /* 1 element */ "C:/EMAGE/kernel.pike" }))->create(@0=({"C:/EMAGE/kernel.pike"})) C:/Program Files/Pike/lib/modules/Stdio.pmod/module.pmod:1277: C:/EMAGE/kernel(A NY:({ /* 1 element */ "C:/EMAGE/kernel.pike" }))->create(@01,0,0)
All I am doing is inheriting Stdio.Port so I can use the bind function. This worked before in 7.4. Any help would be appreciated.
_______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com
/ Brevbäraren
pike-devel@lists.lysator.liu.se