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 89334

Summary: wrong return code printed when using new io terminal window
Product: cnd Reporter: Thomas Preisler <thp>
Component: -- Other --Assignee: _ gordonp <gordonp>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Thomas Preisler 2006-11-14 22:00:26 UTC
The build window used to display the return code of the application and print
something like "Failed. Return code = 5" when the application failed (returned
something different than 0). Now it always says "Succeeded. Return code = 0"
because it probably displays the return code of the start command and not the
application. If you switch to internal window, it works as expected.
Comment 1 soldatov 2006-11-21 08:11:19 UTC
When I run a C++ program that's cause an exception, then gnome-terminal appears
with '/opt/netbeans-5.5/cnd1/bin/dorun.sh: line 38: 12479 Aborted              
  "$pgm" "$@" [Press Enter to close window]' message. But I think, user expects
'program terminated' or other same message in this case.
When I press 'Enter' then 'Run successful. Exit value 0.' message appears.

I used this code:
------------------------------
int main() {
       throw 1;
       return 0;
}

------------------------------ 
Comment 2 _ gordonp 2006-11-28 19:49:02 UTC
*** Issue 89782 has been marked as a duplicate of this issue. ***
Comment 3 _ gordonp 2007-02-08 00:38:24 UTC
Fixed
Comment 4 Alexander Ioffe 2008-01-23 17:11:44 UTC
Verified in build 20080117