Register for your free account! | Forgot your password?

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

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

Advertisement



Need help with some lil problems :)

Discussion on Need help with some lil problems :) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
Unhappy Need help with some lil problems :)

Old old old
$HaDoW is offline  
Old 09/06/2008, 00:36   #2
 
taguro's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 387
Received Thanks: 64
Quote:
Originally Posted by ;1410286
Hi, This is the last step for me to finish my server I need to fix these errors
Code:
1#
System.NullReferenceException: Object reference not set to an instance of an object.
   at COServer_Project.DataBase.Authenticate(String UserName, String Password)

2#
System.NullReferenceException: Object reference not set to an instance of an object.
   at COServer_Project.Character.Attack()

3#
System.NullReferenceException: Object reference not set to an instance of an object.
   at COServer_Project.Character.AddItem(String ItemInfo, Byte ToPos, UInt32 UID)
   at COServer_Project.Client.GetPacket(Byte[] data)

4#
MySql.Data.MySqlClient.MySqlException: There is already an open DataReader associated with this Connection which must be closed first.
   at MySql.Data.MySqlClient.MySqlCommand.CheckState()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at COServer_Project.DataBase.SaveChar(Character Charr)
They appear when players do something but I didint find out yet an its the last thing I need to fix !
The first 3 require more information, like the sections of code giving you errors, and so does the last, but I can offer some fixes for the last error:

A) Read the data into a dataset, and close the reader. Loop through the dataset and call your function.

B) Loop through the datareader, storing the records you want to log into a list. At the end of the datareader, close it, then post the results from the list.

C) Use two separate connections.

D) I do believe upgrading to SQL Server 2005 and/or SQL Express will also solve this problem.
taguro is offline  
Old 09/06/2008, 07:08   #3
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
Old old old
$HaDoW is offline  
Reply


Similar Threads Similar Threads
bot problems
03/14/2010 - Lineage 2 - 3 Replies
I can start walker etc but i got no skill and item list :/ but walker works i use IG walker and i have vista 64 bit mh :P pls help *EDIT* http://img442.imageshack.us/gal.php?g=prob2r.jpg
5165 Problems! 2 problems!
02/28/2010 - CO2 Private Server - 8 Replies
Okay so NOW I get these 2 problems in ma command prompt window of ma source... 2 problems: I really need help since I dunno wtf is the problem on 1 and 2...I'd appreciate it!
[Problems] Source 5165 All Problems
11/28/2009 - CO2 Private Server - 7 Replies
Hello Everyone, Ok i will put All my problems here So i hope noone spamming and Say Go learn C# and w/e 1-RegPage: fixed all by adding  to the start of the pass and  to the end of the pass. its working okay and when i create character and try to rejoin the game close with itself Note: When i make From NewestCOServer Cmd it works fine and the game dont close i mean i want other players to make thier own accounts and dont ask me to make them The Accounts they want. 2-Lottery: Cant...
[Problems]Having problems in Cabal Wudijt
07/01/2008 - Cabal Online - 0 Replies
1>im having problems in registering in Wudijt can anyone help me give me working link 2>i cant seem to update my red cabal online is it offline? 3>when i load Cabal.exe the cabal window will just dissapear please help me,i followed everyone's advice but it doesnt work, can anyone tell me what the real problem? thanks! ^_^



All times are GMT +1. The time now is 00:20.


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.