![]() |
IOCP -____-" - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: IOCP -____-" (/showthread.php?tid=475) |
IOCP -____-" - Tony - 14-12-2006 Does anyone have IOCP and have problems with users connecting? I don't know why this is happening but I keep getting this error when I'm on and another player connects. An error pops up serverside! x____x :: Pando - Gilgamesch - 14-12-2006 nope but, what kind of error is it? it would help a lot solving this problem ![]() - Tony - 14-12-2006 I think the error was: Code: Public Sub WriteBytes(dbytes() As Byte, Optional thenShutdown As Boolean) I forgot what it said. It was RTE with alot of numbers and some words. If you could help test it for me thatd be nice. :: Pando - Spodi - 14-12-2006 dbytes probably has no value - you are probably passing an undimmed byte array in the dbytes byref. - Tony - 14-12-2006 Could you help me test the client? I want to see whats the error again and maybe since I just updated my windows xp it might have a different result. :: Pando - Tony - 14-12-2006 What do you mean copy and paste all the codes? HEY wasn't you the one who created the IOCP tutorial? maybe I should do it over? ;; Pando - Tony - 14-12-2006 Thats all I could find of WriteBytes besides the sub itself. Code: Sub SendDataTo(ByVal Index As Long, ByVal Data As String) If someone could test the client I could tell you what the error was. :: Pando - Tony - 14-12-2006 I don't remember what the error was. My tester isn't on so I need a subsitute. :: Pando - Tony - 14-12-2006 The tutorial and my server's code is exact and yes its setting, Code: Set objNewMember = New clsSocket and Code: ' Get the listening socket ready to go :: Pando - Tony - 15-12-2006 The error is Out of Memory, and a bunch of numbers. this error happens once the user selects a character to play. to fix it i have to pretty debug and press run again. (Server) [Edit#2] I just forgot that I didn't edit the max_players for client side. Is that the problem? Hope so. [Edit#3] OMG! this is driving me crazy! I recoded the source, the first thing i added was IOCP and then tested it. Worked! Then I added other stuff and now I end up with the same error highlighting Code: Call mvarSocket.Write(dbytes, thenShutdown) Error: Out Of Memory but before I added everything else it didn't say that when my test logged in. GARR! WHY! the binary files seem to be the problem I think. :: Pando - halla - 15-12-2006 Was just going to ask what you added afterwards... so it was binary? - Matt - 15-12-2006 Out of memory.. Do you have enough RAM to run the server? I think that was one of the reasons I used to get the error. That and client side, when I had a crappy video card and was using video memory. - Tony - 15-12-2006 Yeah it was the binary files (hint: I'm working on a pokemon game and I removed alot of junk and now everythings fixed No armours, classes, weapons, equipment, levels, exp, etc. and you can choose any sprite you desire, PRETTY NEAT HUH) Yeah it was just the classes.dat having no data or saving wrong. :: Pando - halla - 15-12-2006 Pando Wrote:Yeah it was the binary files (hint: I'm working on a pokemon game and I removed alot of junk and now everythings fixed No armours, classes, weapons, equipment, levels, exp, etc. and you can choose any sprite you desire, PRETTY NEAT HUH) Yeah it was just the classes.dat having no data or saving wrong. lol another pokemon game... well good luck with that - Tony - 15-12-2006 Yep I've got it fixed. Thanks Verrigan for helping though. :: Pando - Tony - 14-01-2007 Did you add binary files? - Tony - 14-01-2007 classes.dat is blank probally. - Tony - 14-01-2007 I don't know then. That was my problem. |