This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 134347 - Premature switchToIndeterminate causes handle.start to hang
Summary: Premature switchToIndeterminate causes handle.start to hang
Status: RESOLVED DUPLICATE of bug 186636
Alias: None
Product: platform
Classification: Unclassified
Component: Progress (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Peska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-01 20:46 UTC by tomwheeler
Modified: 2011-08-26 11:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomwheeler 2008-05-01 20:46:03 UTC
I was attempting to load a file of unknown size and wanted to use the Progress API in indeterminate mode for the
duration of the loading process.  I therefore tried this code:

    ProgressHandle handle = ProgressHandleFactory.createHandle("Loading data");
    handle.switchToIndeterminate(); 
    handle.start();
    // actual loading code goes here

However, it hung and did not ever reach my loading code nor did it give any warning or error message about what I might
be doing wrong.  I was able to correct the problem by putting the call to switchToIndeterminate() after the call to start().

The documentation does not say that a handle may be switched to indeterminate mode only when running. Therefore I cannot
say whether it is a documentation of implementation problem, but fixing either would be OK with me.
Comment 1 Jan Peska 2011-08-26 11:23:47 UTC
Not exact duplicate but these issue will be probably fixed together

*** This bug has been marked as a duplicate of bug 186636 ***