Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Swing Applications hangs with some errorr

 
jaibhim max
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have created a simple swing application, that has 3 textfields, and 2 buttons. When I try to run the code, following error comes and GUI hangs.



I have googled through above error message and got to know that if I provide"-XstartOnFirstThread" as a VM argument then everything will work fine. But noting is fruitful in my case.

Please help me out since its too urgent.


Regards,
max
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You say you've created a simple Swing application, but the error message says otherwise:


Setting timeout for SWT to 0.100000


So is it Swing or is it SWT? Or perhaps it's some weird combination of both, and there's why you're hanging?
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error message tells you that you are sending autorelease message to an object but you didn't create an auto released pool.
Which I think it is strange since this the heart of Cocoa programming and you said you are doing Java programming.
Are you creating Swing, SWT or Cocoa application?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Andy Duplain, your post was split to a new topic in the IDEs forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic