Can Any Coder Help in a System Console Problem ?!!

07/26/2014 08:35 sasabkar2008#1
I have a Problem with @Exit Command in Code Environment.Exit(0) C# Project

The Server Restarting Works 100 % but the Problem is With the Console it did not Close (Sockets + Players Exit 100 % but the Console Window Still not Closed and Give me This Error)

[IMG=expandable: 1, title: Problem !][Only registered and activated users can see links. Click Here To Register...][/IMG]

and this is the Problem Details in the Window

PHP Code:
Problem signature:
  
Problem Event Name:    APPCRASH
  Application Name
:    Conquer_Online_Server.exe
  Application Version
:    1.0.0.0
  Application Timestamp
:    53d33584
  Fault Module Name
:    clr.dll
  Fault Module Version
:    4.0.30319.1022
  Fault Module Timestamp
:    52ccf666
  Exception Code
:    c0000005
  Exception Offset
:    0019d578
  OS Version
:    6.1.7601.2.1.0.256.1
  Locale ID
:    3073
  Additional Information 1
:    2caf
  Additional Information 2
:    2caf49507491cfc2ddc51923c117ec68
  Additional Information 3
:    f2ad
  Additional Information 4
:    f2ad469117fe8249c1f2dec46b32aa59 
Please Any One Can Help Me With That Problem by the way i Changed the Exit Code and Problem Still and and other Sources i have Tryed on my LapTop Works 100% with no Error the Error is in This Source Only ,,,, Thanks :confused:
07/26/2014 08:48 Spirited#2
Probably some trash attempt at persistence. Just delete whatever is calling the server application and call the application directly.
07/26/2014 08:52 sasabkar2008#3
okay i will check if it works thx for answering :)
07/26/2014 08:58 ahyaha#4
Quote:
Originally Posted by Spirited View Post
Probably some trash attempt at persistence. Just delete whatever is calling the server application and call the application directly.
Can you explain more ?
07/26/2014 08:58 sasabkar2008#5
hmmm those files are system protected files i can not delete or may be i do not know how so can you explain exactly where and what should i delete ,,, thanks
07/26/2014 09:41 Spirited#6
Quote:
Originally Posted by ahyaha View Post
Can you explain more ?
http://en.wikipedia.org/wiki/Persist...mputer_science)

Quote:
Originally Posted by sasabkar2008 View Post
hmmm those files are system protected files i can not delete or may be i do not know how so can you explain exactly where and what should i delete ,,, thanks
Out of curiosity on how this escalated so quickly to deleting system protected files, what files did you consider deleting and why?
07/27/2014 01:14 sasabkar2008#7
The Problem is Still any other Solution ?!!
07/27/2014 01:33 OverKillasdwqe#8
try Process.GetCurrentProcess().Kill()
07/27/2014 08:30 sasabkar2008#9
it Didn't Work :( Can Any One even Tell Me what Class Files Should i Replace that may Solve the Problem ,,,, thanks

I Tryied to Use Try Catch Code to Specify the Problem Place and i Got This
then i Changed the File (public class ServerSocket) and the Problem Still Can Any one Help ?!!!!

[IMG=expandable: 1][Only registered and activated users can see links. Click Here To Register...][/IMG]

[IMG=expandable: 1][Only registered and activated users can see links. Click Here To Register...][/IMG]

[IMG=expandable: 1][Only registered and activated users can see links. Click Here To Register...][/IMG]

Problem Solved Thank You :)