DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2008

    Need a tool for bugs fixing-a source code analyzer

    Hi ,I am experiencing a problem with QT Java 6.1 on Windows XP using Java1.4.2 (_2, _3, and _4) where a QT Component (as Component()) created from a Movie Controller placed in a window or frame will sometimes freeze when another window is placed in front of it or removed with set Visible(true/false). I cannot produce a test case or anything of the like because I cannot reliably reproduce it on command. The freeze
    occurs on the set Visible () command. Looks like some DEADLOCK. Has anyone else experienced this?
    Any suggestions? Ideas ? Thanks

  2. #2
    Join Date
    Mar 2008

    ******** Prevent- source code analysis tool for debugging software defects

    Hi ,
    To find solution for your problem lets see what dead lock is . A deadlock is a situation where threads are blocked because one or both are waiting for access to a resource that will not be freed. The application can never terminate because the threads are blocked indefinitely.
    This behavior results from improper use of the synchronized keyword to manage thread interaction with specific objects. The synchronized keyword ensures that only one thread is permitted to execute a given block of code at a time. A thread must therefore have exclusive access to the class or variable before it can proceed. When it accesses the object, the thread locks the object, and the lock causes other threads that want to access that object to be blocked until the first thread releases the lock.
    Since this is the case, by using the synchronized keyword you can easily be caught in a situation where two threads are waiting for each other to do something.
    Of course, most deadlocks won't be quite so obvious simply from reading the source code, especially if you have a large multithreaded program. A good Source code analysis tool, like ******** Prevent, finds deadlocks and points out their location in the source code so that you can fix them. ******** has customers like Symbian, RIM (Blackberry), Juniper networks, Cisco, Texas instruments and is also used by the Department of Homeland security to scan lots of open source projects. You can get more info at http://www.********.com.

Similar Threads

  1. Replies: 0
    Last Post: 02-13-2007, 06:09 PM
  2. Are Comments a Waste of Time?
    By Glen Kunene in forum Java
    Replies: 25
    Last Post: 04-22-2002, 05:45 PM
  3. ANN: Source Code Contest voting
    By Serge Baranovsky in forum vb.announcements
    Replies: 0
    Last Post: 05-15-2001, 02:30 PM
  4. Source Code Contest voting
    By Serge Baranovsky in forum VB Classic
    Replies: 0
    Last Post: 05-15-2001, 02:59 AM
  5. An Open Source VB?
    By Mark Alexander Bertenshaw in forum Talk to the Editors
    Replies: 20
    Last Post: 07-25-2000, 12:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.