Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8426029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:26:13+00:00 2026-06-10T04:26:13+00:00

I wrote a text mode batch C++ program that since today is giving me

  • 0

I wrote a text mode batch C++ program that since today is giving me some troubles.

  • The executable worked correctly and it did not change.
  • The environment did not change; not even a reboot.
  • When I launch the program from a certain console, everything is fine.
  • When I launch the program from a new console, everything still works, but I get just the first two lines on the log file, even if the execution completes.
  • The parameters passed to the executable are the same.
  • The executable does not interact with the console in any way.
  • The two consoles’ environment variables are the same.
  • When run from a remote computer as root, everything is fine, the log file is complete.
  • When logged in again with my user, from another session, everything is fine again.
  • When logging out and in again, everything is fine again.

So, could it be the from a certain instant on, the new consoles had some issues that caused this problem?

Could this be a problem of my Linux installation?

Or, more realistically, could the problem depend on my program?

Thank you!

Environment:
– Linux OpenSuse 11.4
– gcc 4.5.1

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:26:14+00:00Added an answer on June 10, 2026 at 4:26 am

    Here is another tool to throw into your debugging toolbox.

    Try the command ‘reset’ — read the man page for details.

    In short, it resets the console to a known state. It is … possible that your log files may contain control characters that try to interact with tty causing hard-to-trace problems.

    You might also want to look at the command ‘script’ which captures all console activity to at et file for examination.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote a C++ program to retrieve some text data from MS-Active Directory and
I wrote some code that activity starts a service to get some text from
I wrote a program that accepts and outputs Hebrew (i.e. right-to-left) text. In lieu
I wrote a user script that performs a certain operation on selected text in
I am looking into making a text based game that I wrote in Haskell
I've got [16] in an org-mode file that is the text you would see
I have a program that simulates a text editor. It lets users add lines
I wrote a program in windows that will play binary audio sent to it
I wrote the following code for text file encryption and decryption. The encryption process
I wrote the following code to select text from database,but when i echo the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.