Register for your free account! | Forgot your password?

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

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

Advertisement



i have prblem plz help me

Discussion on i have prblem plz help me within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
abdomiky7's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 168
Received Thanks: 4
i have prblem plz help me

i have prblem plz help me

abdomiky7 is offline  
Old 03/14/2012, 00:02   #2
 
U2_Caparzo's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 314
Received Thanks: 90
C# != ConquerServer... so u can google the error, U aren't closing a FileStream...
U2_Caparzo is offline  
Thanks
1 User
Old 03/14/2012, 10:16   #3
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
You're trying to either read/open/write or whatever to a stream that's already in use. As said above you have to call Close().

How to avoid it:
Code:
FileStream fs = new FileStream("somefile.txt", FileMode.Open);
StreamReader sr = new StreamReader(fs);
string something = sr.ReadLine();
//Make sure to close the inner-stream first, in this case StreamReader, because it's using FileStream, so you cannot close the FileStream first.
sr.Close();//You need this
fs.Close();//And also this
You could also use the using keyword and avoid using Close().
Code:
using (FileStream fs = new FileStream("somefile.txt", FileMode.Open))
{
    using (StreamReader sr = new StreamReader(fs))
    {
        string something = sr.ReadLine();
    }
}
I don't have a username is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
prblem mit dem clienten
02/14/2012 - Metin2 Private Server - 1 Replies
hi ich habe ien probem und zwar hat die 80 ninja king bei mir das icon von der sura ninja king wieso und ich wollte noch fragen ob einer ein gutes eix/epk entpackungs pack programm kennt wel alle die ich hatte haben nie gepackt ging nicht bitte um hilfe
warrock prblem^
07/22/2011 - WarRock - 2 Replies
es öffnet sich nichnt da kommt bei update setup immer wenn ich auf start drück error : cannot find execute file ! ps hab keine hacks und auch keine scripts
My prblem with sa ( VIDEO )
06/26/2011 - Rappelz - 7 Replies
Hii this is my problém again :'( please watch the video and help me YouTube - ‪Rappelz Privat Server : My Problem !!!‬‏ :mofo:
wow prblem mit bildschirm
02/10/2010 - World of Warcraft - 2 Replies
wenn ich wow starte kackt mein bildschirm ab aber wenn ich dann alt+f4 drücke d+kommt der deskop wieder pls help
Prblem mit FileZilla
11/06/2009 - Metin2 Private Server - 1 Replies
Hey hab prblem mit FileZilla wen ich mit mein server verbinden will kommt immer: `Status: Verbinde mit Ip mit 100 am ende... Antwort: fzSftp started Befehl: open "root@IP" 22 Fehler: Zeitüberschreitung der Verbindung Fehler: Herstellen der Verbindung zum Server fehlgeschlagen Status: Nächsten Versuch abwarten... Status: Verbinde mit IP... Antwort: fzSftp started Befehl: open "root@Ip" 22



All times are GMT +2. The time now is 06:20.


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.