Home > C#, ConsoleApp > Error: Not enough storage is available to process this command

Error: Not enough storage is available to process this command


Today afternoon I was on a mission to complete a long pending personal project and as part of it I was developing a windows service which extended the support of starting and stopping the service from a console window. After the completion it was time for me to start testing that out and then this weird thing happened. Whenever the system encountered a Console.ReadLine(), it gave me a strange error: “Not enough storage is available to process this command.”  But executing a Console.WriteLine() was not an issue. After playing around with it for a while I figured out the project I had selected was Windows Service and hence it’s output type was Windows Application. Changing the project type to a Console application did the trick. Hopefully this helps someone.

Cheers!

Categories: C#, ConsoleApp Tags:
  1. Dan
    June 23, 2010 at 5:41 am | #1

    It helped

  2. Alex
    June 16, 2011 at 10:25 am | #2

    And 1 year later it helped again ^^
    Thx.

  3. July 26, 2011 at 8:30 am | #3

    Spent hours on this last night. Would have helped if I had internet available!
    Thanks!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.