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 89782 - Exit status is always 0 when external console type is used on Windows
Summary: Exit status is always 0 when external console type is used on Windows
Status: RESOLVED DUPLICATE of bug 89334
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-21 18:34 UTC by Andrew Krasny
Modified: 2007-09-06 18:01 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 Andrew Krasny 2006-11-21 18:34:37 UTC
Try this:

1. Create new project and create new c++ main file.

#include <stdio.h>
int main(int argc, char**argv) {
   int i;

   printf("Enter some integer: ");
   scanf("%d", &i);
   printf("i is %d\n", i);
   
   return i;
}

2. Make sure that 'Console Type' property of the project is set to Default or
'External Terminal' value. 

Exit status of the program is always displayed as '0' 


With 'Output Window (Input only)' it works just fine.
Comment 1 _ gordonp 2006-11-28 19:49:09 UTC

*** This issue has been marked as a duplicate of 89334 ***