RE: Al Getz Display Server
- Posted by Al Getz <Xaxo at aol.com> Jul 27, 2003
- 547 views
jondolar wrote: > > > > > include connect.ew > > > include get.e > > > integer wk > > > puts(1,"Hello") > > > wk = wait_key() > > > > > > ServerPrint("Hello1") > > > ServerPrint("Hello2") > > > ServerPrint("Hello3") > > > > > > Sorry > > > > > > Serge > > > > > > > Hello again, > > > > What you are telling me doesnt make that much sense because > > when you put a question mark followed by a variable > > into an include file at the top level after that variable > > has at least been initialized means Euphoria does one of > > two possible things: > > 1. opens a console and prints the variable value. > > 2. finds something wrong and prints an error message. > > > > You might want to check to see that you have the three > > lines at the very end of the connect.ew file and not > > within a procedure. > > > > All i was asking you to try was to > > try to print those three variables at the end of the > > connect file. This is a very basic Euphoria troubleshooting > > technique. Do you understand this? > > > > You might also try putting the include for the connect.ew file > > last, just before your first ServerPrint() call. > > > > > > Take care, > > Al > > > Hi Al > I may not be the brightest programmer but what you asked me to do is > rather basic. I did EXACTLY as told. I even moved the include right > before ServerPrint() call as suggested. I have 3 copies of connect.ew, > one in my directory for DisplayServer, one in the Include directory and > a final one in my ProTest directory where I keep my test progs. I put > your 3 lines at the very end of each of them to make sure that whichever > > one is used, it has the required code. The end result is the same. (even > > if it does not make much sense to you) > > Serge > Hello again, Ok thanks. What you could do next is put printf(1,"%d\n",{1}) at the very START of the connect.ew file. If the console doesnt open up now when you run your file with the connect file included, then you have to be using the wrong connect.ew file. That is, as you mentioned having several copies, the wrong one must be running. I'm pretty sure the only file you should have to change is the one in the same directory as your exw file. If you want, put some other stuff in there too to print to the console window once it starts up. As you said, this is very basic so you should be able to get something to print to the console from the connect file. Also, just a side note: The Display Server doesnt WRITE to your processes memory, it only READS it, so it's not likely that something is getting overwritten. BTW, did you try to run any of the demos first? Take care for now, Al