Register for your free account! | Forgot your password?

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

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

Advertisement



NullReferenceException Problem.

Discussion on NullReferenceException Problem. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
NullReferenceException Problem.

Hey guys, I've been away quite a while but now I'm back.

Anyways, I wanted to try this 5535 source I had in my computer from a while back but it is giving me an error I can't quite manipulate.

This is the error line:
Code:
if (_dataset.Tables[Table].Rows.Count > _row)
This is the error itself:
Code:
Object reference not set to an instance of an object.
I have configured all there is to configure including the config.ini, Constants.cs, etc. I'm just not sure why this error is popping up at this time.

YES, I understand that the error is telling me that I'm trying to perform an action on something that is not yet assigned but I'm a little lost at what to assign seeing as everything is already assigned to its place.

I would very much appreciate the help, sorry for the "newbiness" but like I said I just got back and I need to start getting the hang of things once again.

Regards, Killersub.
killersub is offline  
Old 08/07/2012, 08:45   #2
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
_dataset is null or _dataset does not contain a table with the name from "Table", which results in a NullReferenceException.
I don't have a username is offline  
Old 08/07/2012, 09:57   #3


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Come on... Try catch and a breakpoint ffs... Learn how to debug!
Korvacs is offline  
Old 08/07/2012, 10:02   #4
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Quote:
Originally Posted by Korvacs View Post
Come on... Try catch and a breakpoint ffs... Learn how to debug!
Best way to debug is with fire.
I don't have a username is offline  
Old 08/07/2012, 10:04   #5


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Depends on the bug..
Korvacs is offline  
Old 08/07/2012, 10:12   #6
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Quote:
Originally Posted by Korvacs View Post
Depends on the bug..
I don't have a username is offline  
Thanks
1 User
Old 08/07/2012, 19:39   #7
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
Quote:
Originally Posted by I don't have a username View Post
_dataset is null or _dataset does not contain a table with the name from "Table", which results in a NullReferenceException.
Going to check that ASAP!

Quote:
Originally Posted by Korvacs View Post
Come on... Try catch and a breakpoint ffs... Learn how to debug!
I'm not that much of a newb lmao, I've tried those both things and nothing has shown up for me yet.

Anyways, thanks for the response; Going to try both of your examples.

By The Way, this error comes from the MySQLReader void "public void Read()".
killersub is offline  
Reply


Similar Threads Similar Threads
[C#] System.NullReferenceException bei List<>
07/08/2012 - .NET Languages - 3 Replies
Hallo bin momentan nebenbei an einem Projekt in C# am arbeiten und habe ein Problem mit der Exception im Titel. Folgendes versuche ich: In dem Programm gibt es eine Personenverwaltung. Ich habe eine Mutterklasse 'Entity' class Entity { int id; string name;
Nullreferenceexception
10/07/2011 - CO2 Private Server - 4 Replies
Alright i'm getting these errors on nobility. I never had these errors before but the error reads this line in MySqlReader.cs private MySqlConnection _conn = new MySqlConnection(ConnectionString); that line never had errors for me. Can someone please explain this exception to me and give me tips on how to fix it. I would appreciate it ever so much (:.
NullReferenceException
03/21/2011 - CO2 Programming - 12 Replies
Alright, This Damn Exception annoys me as fuck , and I've got No Idea why. I Believe I'm missing something.. Can somebody remind me what is it? I know It's un-pro question but ermm... here we go. http://i989.photobucket.com/albums/af15/RockArch/ Untitled.png?t=1300203698
[Visual Basic 2010]System.NullReferenceException
02/13/2011 - .NET Languages - 3 Replies
Hallo Elitepvpers, ich hoffe ich bin hier am richtigen Platz, also ich hab einen Emulator versucht zuverbessern aber es kommt dieser Fehler: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
[Help]NullReferenceException
11/23/2008 - CO2 Private Server - 3 Replies
Ok... Well first off, I feel like an idiot fot not knowing what to do here. But I'm completely lost, so if somene could point me in the right direction, I'd appreciate it. Seems this is completely random, sometimes it will occur after 30 minutes, sometimes the server can run for hours without an issue. But occasionally this kicks in, and everything freezes. The code effected is... if (Charr.MyClient.Online) if (MyMath.CanSee(Attacked.LocX,...



All times are GMT +2. The time now is 21:34.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.