Computer Science Canada New Chat Program (with errors). Opening Files = Crash. |
Author: | templest [ Fri Oct 22, 2004 4:31 pm ] | ||
Post subject: | New Chat Program (with errors). Opening Files = Crash. | ||
I've been staring at this for thirty minutes trying to find out wtf is wrong with it. It opens the file perfectly the first time, gets and sets the username to what's in the "config.ini". But when I try to re-open the file in a process for changing the username, it gives me an "Invalid StreamNumber" error. ![]() Ideas?
|
Author: | templest [ Fri Oct 22, 2004 6:49 pm ] |
Post subject: | |
Anyone? ![]() |
Author: | Mazer [ Fri Oct 22, 2004 7:54 pm ] |
Post subject: | |
I assume you mean when you type "!name xxxxx", right? Sorry, I can't find a problem with your code, I'm thinking turing is just... well, turing. |
Author: | templest [ Fri Oct 22, 2004 10:06 pm ] |
Post subject: | |
Coutsos wrote: I assume you mean when you type "!name xxxxx", right? Sorry, I can't find a problem with your code, I'm thinking turing is just... well, turing.
Yes, and I'm begining to think: Yes. Goddamnit, I guess I'm going to start looking for some "C" PDFs in the very near future. I can't wait until second semester. Damn patience! In fact, damn it all! Damn it all to hell! |
Author: | Tony [ Fri Oct 22, 2004 10:23 pm ] |
Post subject: | |
Quote: put : file, "name:" + new_name getname <<-- ? exit well you call getname before closing the file, and are trying to open the same file from there |
Author: | templest [ Sat Oct 23, 2004 10:33 am ] | ||
Post subject: | |||
Nope. I removed it from the procedure and added it afterwards, in the "if" statement that initializes the first changename.
Same thing happens. |