Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PC gets hanged for a second

 
Vishal Hegde
Ranch Hand
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello guys wwhen i try to compile a simple program my whole PC gets hanged any idea why is it happening
 
Vijitha Kumara
Bartender
Pie
Posts: 3918
10
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vishal Hegde wrote:hello guys wwhen i try to compile a simple program my whole PC gets hanged any idea why is it happening

That statement itself is not that explanatory. Can give more details on what you did (any commands etc..).
 
Vishal Hegde
Ranch Hand
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
only a simle java code of try catch and when i compiled it it hanged for a minute
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15482
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's impossible to answer this question. We don't know what kind of computer you have (slow? fast? how much memory?), which operating system you are using, what version of Java you are using, etc. Maybe you have a virus or spyware on your computer that's doing nasty things? There can be a thousand reasons for this...
 
salvin francis
Bartender
Posts: 1308
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please provide the code.

Once again, you have said nothing about your problem,
we cant help you if we dont know any thing.

its like going to a doctor and saying i am not well and then just standing there quietly saying nothing


Possible problems with hanging:

1. infinite loops
2. recursive programs (they do throw out of stack, but sometimes the pc hangs up)
3. slow IO (may be program is waiting for something to happen)


if your pc is hanging during compilation,
1. is your pc config good enough to support the program (i think javac may take quite a while in a 128 mb ram)
2. Are you using a memory hungry IDE (Eclipse /netbeans may almost hang in 128 or 64 mb ram during compilation)
3. Are you compiling just your file or all files : or ?
 
Raghu Devatha
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem seems to be with your machine. You need to fix it. People can only help when you provide sufficient information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic