[Help] Program.cs minor (yet annoying) error

06/13/2011 19:21 killersub#1
okay, so let me cut to the chase. I have been getting this problem in my program.cs file and I have not yet figured out how to solve it... I tried commenting it but yet nothing has happened. when I debug the build the whole solution it brings up the server command prompt with all the data loading then stops at the bottom saying this error (NullReferenceException):

Quote:
Object reference is not set to an instance of an object
on this piece of code:

Code:
[COLOR="Red"]if (EntityUID.Now == 0)[/COLOR]
                {
                    Console.Clear();
                    Console.WriteLine("Database error. Please check your MySQL. Server will now close.");
                    Console.ReadLine();
                    return;
                }
sorry for the noob-ness I have not been coding for a while now...

any ideas would be appreciated (:
06/13/2011 20:04 Mr_PoP#2
EntityUID.Now has no data to compare it with 0!??
check if UntityUID.Now has anydata or not , before comparing it , that what would i do though!
06/13/2011 21:43 killersub#3
Quote:
Originally Posted by Mr_PoP View Post
EntityUID.Now has no data to compare it with 0!??
check if UntityUID.Now has anydata or not , before comparing it , that what would i do though!
what do you mean by has no data to compare with 0?

this code defines the EntityUID.Now

Code:
public uint Now
        {
            get;
            set;
        }
06/13/2011 22:04 Kiyono#4
Oh, I had the exact same problem a while ago, this is the old trinity source right? If so the error is caused by not matching server names. I know it says something about IDs but that's irrelevant.
06/13/2011 22:07 killersub#5
Quote:
Originally Posted by Kiyono View Post
Oh, I had the exact same problem a while ago, this is the old trinity source right? If so the error is caused by not matching server names. I know it says something about IDs but that's irrelevant.
do you know where can I change/fix that? (sorry for the noob response)

EDIT: I found out the problem. thanks Kiyono (:

Quote:
Originally Posted by Kiyono View Post
Oh, I had the exact same problem a while ago, this is the old trinity source right? If so the error is caused by not matching server names. I know it says something about IDs but that's irrelevant.
oops.. now When I start up my client it crashes. does that have to do with any configuration?