Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 16:40

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Weird null reference exception.

Discussion on Weird null reference exception. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Weird null reference exception.

#Edit I know why it happens and it's fixed.
BaussHacker is offline  
Old 07/18/2011, 04:28   #2
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
use a break point .
{ Angelius } is offline  
Old 07/18/2011, 05:05   #3
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Quote:
Originally Posted by { Angelius } View Post
use a break point .
It's not that. The client is null, when I receive it at the game server, but it's assigned at the auth server.
BaussHacker is offline  
Old 07/18/2011, 07:36   #4
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
Quote:
Originally Posted by BaussHacker View Post
It's not that. The client is null, when I receive it at the game server, but it's assigned at the auth server.
Use a concurrent dictionary to pass the information. Assign a new client at the game server.
Spirited is offline  
Old 07/18/2011, 09:42   #5
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Quote:
Originally Posted by BaussHacker View Post
#Edit I know why it happens and it's fixed.
How did you fixed it?
marlyandedsel is offline  
Old 07/18/2011, 16:07   #6
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Quote:
Originally Posted by marlyandedsel View Post
How did you fixed it?
Authserver is one socket and Gameserver is another. I were thinking of them to be the same, so I just used a dictionary to get the client, which was what I forgot to do.
Code:
        public static void ProcessConnection(SocketClient Client)
        {
            try
            {
                ConquerClient client = Kernel.ClientFromIP(Client.IP);
                if (client != null)
                {
                    Client.Owner = client;
                    client.SocketClient = Client;
                    client.CreateDHKey();
                }
                else
                {
                    Client.Disconnect(false);
                }
            }
            catch (Exception e)
            {
                Server.ErrorHandler.Handle(e);
            }
        }
BaussHacker is offline  
Reply


Similar Threads Similar Threads
How to kill Dark Colluseast: Null and Steelation: Null (TT 3-1)?
06/10/2011 - PW Hacks, Bots, Cheats, Exploits - 1 Replies
Can anyone tell me How to kill Dark Colluseast: Null and Steelation: Null (TT 3-1)? :handsdown: After patch 121 or mermaid update, the boss, Dark Colluseast: Null and Steelation: Null, has a random aggro, area stun, and area banish. :confused:
[D2NT] API Reference [NO QUESTIONS]
03/16/2011 - Diablo 2 Programming - 4 Replies
Dear community, this will be the home of the upcoming D2NT 3.1 API reference. This reference is supposed to be useful for everyone, therefore the official language in this topic is english. I would really appreciate if we could share some of the work. That's why I hope for some contributions. :) In this case, contributing basically means picking some function or object from the list below that has not been dealt with and write a reference for it. However, to make this really...
My Reference For Cheats
02/23/2011 - Facebook - 0 Replies
The Website Which Gives/Shares To Me New,Fresh,100% Working Cheats Is facebookgamestricks.tk Visit The Page And See More Cheats Up Everyday There Are 5 Cheats Fresh Please Cooperate
just a reference
11/26/2008 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 0 Replies
havnt been on for some time i dont know if its any help at all this is an old sheet i used to use to find things quicker with winhex though id post it :) If someone else has posted it im sorry in advance :handsdown: the way i use it is simple just say i wanted to find a Great mana potion all i would do is click the search tab in winhex then find text then enter 3806 then it should be the first item that pops up with a line that looks like 3806,Great Mana...
2nd rb quest quick reference
01/05/2007 - CO2 Guides & Templates - 10 Replies
i know there have been a few of these but i see people constantly asking, so here's just a quick referance of where lords and special mobs can be found in 2nd rb quest. hope it helps. (i used shodowHackers guide to help me make this)



All times are GMT +1. The time now is 16:40.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.