• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

PC gets hanged for a second

 
Ranch Hand
Posts: 1087
Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4109
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1087
Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
only a simle java code of try catch and when i compiled it it hanged for a minute
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Bartender
Posts: 2908
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Remember to always leap before you look. But always take the time to smell the tiny ads:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic