Register for your free account! | Forgot your password?

You last visited: Today at 08:47

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

Advertisement



Null help.

Discussion on Null help. within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
Null help.

Alright, i don't know why i had my last thread closed, I guess I thought I could handle is.

I have been at this problem literally all day and have tried 4 different socket wrappers and they all have the same issue.

PHP Code:
Console.WriteLine("Incoming Auth Data");
AuthClient sender Sender.Wrapper as AuthClient
sender.AuthServer.Send(Data); 
This is currently Hybrids socket that were upgraded for 5018+
sender is ALWAYS null so when i try to send the data it throws the null exception. My question is is how come it is null and won't 'define' as a AuthClient. If it helps this is my AuthClient class

If you could help that would be wonderful.

Thanks
Santa is offline  
Old 12/24/2010, 13:18   #2
 
Nullable's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
I think this is happening because you're not setting the Wrapper member in WinsockClient to the AuthClient instance.
Code:
AuthServer.Wrapper = this
However it is irrelevant, why are you using the Sender.Wrapper instead of directly using 'this' keyword? You're essentially in a member function of the same class.
Nullable is offline  
Old 12/24/2010, 16:26   #3


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
If sender is null that means that Wrapper can`t be casted to AuthClient. Check why they`re not compatible in your code.
KraHen is offline  
Old 12/24/2010, 17:38   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
To clear up what they are saying some... go to where you have your on connect method and set the wrapper to the instance of the auth client object you create...

IE on connect you'd be doing something like...

Sender.Wraper = new AuthClient(Socket, Port);

that way the wrapper is not null and you can therefor use it when receiving packets from that client.
pro4never is offline  
Old 12/24/2010, 22:55   #5
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
I do set it to an instance if the auth client

Sender.Wrapper = new AuthClient(Sender); Within the AuthConnect.

Edit:
Here is my connections class
Santa is offline  
Old 12/26/2010, 13:37   #6
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
That's strange PM me your MSN or something, I wouldn't mind helping you debug it.
InfamousNoone is offline  
Reply


Similar Threads Similar Threads
SpielModus (Null) ?
09/11/2010 - WarRock - 18 Replies
Watafak? :awesome: http://i55.tinypic.com/2eye73m.jpg
null kal 1hithack?
08/16/2010 - Kal Online - 11 Replies
naja da sind'n paar leute mit 1hithack o.o weiß einer wie das da geht? der macht 2 mio dmg beim boss xd...
NULL NULL
11/01/2008 - Kal Online - 1 Replies
Hallo zusammen , Ich habe mir nach dieser anleitung Server erstellen - KalZone.de - Deutscher KalOnline P-Server Support einen kalserver gebaut . Aber wen ich in das spiel möchte ... zeigt er mir den fehler NULL NULL an i einem kleinem fenster.
Null-Config für 1.9.3?
02/09/2007 - Ragnarok Online - 6 Replies
Ich wollte mal ein paar einfache Makros laufen lassen im xkore wie etwa Phenswitch. ich fand null-configs für 1.9.0 bzw 1.9.1 aber darüber hinaus nichtmehr. Mit der Suchfunktion hier bzw im openkore forum direkt kam ich auch nicht weiter. mit den älteren versionen ist es ja nicht möglich auf euro zu botten. Muss ich komplett die ganze Config ändern oder hat da vielleicht schon wer einen link? Hoffe ihr könnt mir da helfen.



All times are GMT +1. The time now is 08:48.


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.