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 84445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:55:56+00:00 2026-05-10T21:55:56+00:00

I have encountered a rather odd error that I do not understand. I created

  • 0

I have encountered a rather odd error that I do not understand. I created a C# console application that was designed to just be a test to see if my web service was working from outside my network. All it did was try and connect to the webservice, output each stage to the console and write it to a text file so they could send me the logs.

It worked perfectly on 3 XP machines (one inside my network, 2 outside). A Vista machine (had a manifest file) but on my bosses XP machine (he is an IT guy so does know what he is doing), it threw a very odd error.

C:\temp\testwe~1.exe The NTVDM CPU has encountered an illegal instruction

http://www.houseofhawkins.com/roger.jpg’>

I did some googling and it seemed like his NTVDM might have been buggered, or there was a virus or something. None of these seem to be the case. I can not see what would be happening to cause this to fail in such a way.

using System; using System.Collections.Generic; using System.Text; using System.IO;

namespace testwebservice { class Program { FileStream theFile = null; StreamWriter writer = null;

    static void Main(string[] args)     {         Program p = new Program();         p.testMe();     }      private void testMe()     {         Console.WriteLine('Entered main method about to create stream');                     try         {             theFile = File.Create(@'jonTestWebService.log');             writer = new StreamWriter(theFile);             writer.AutoFlush = true;              try             {                 message('Starting test at: ' + DateTime.Now.ToLongTimeString());                  Random rand = new Random();                  message('creating new instance of webservice');                 houseofhawkins.testweb webServ = new testwebservice.houseofhawkins.testweb();                  message('calling hello world');                 String helloResult = webServ.HelloWorld();                 message('hello world result = ' + helloResult);                  int one = rand.Next(999);                 int two = rand.Next(999);                 message('calling maths method with ' + one + ' + ' + two);                 String mathResult = webServ.mytestMethod(one, two);                 message('Math result is: ' + mathResult);                    message('Creating instance of CSJawbreaker');                 CSJawbreaker.InformationService csj = new testwebservice.CSJawbreaker.InformationService();                  message('trying to get the latest version number');                 float version = csj.latestVersionNumber();                 message('Version number: ' + version.ToString());                  message('');                 message('Finished all processing at: ' + DateTime.Now.ToLongTimeString());             }             catch (Exception ex)             {                 writer.WriteLine('');                 writer.WriteLine(ex.Message);                 writer.WriteLine('');             }         }         catch (Exception ex)         {             Console.WriteLine('could not create stream Writer, ' + ex.Message);         }          message('');         message('Press return to exit');         Console.ReadLine();          writer.Close();         theFile.Close();     }      private void message(String message)     {         if (theFile != null && writer != null)         {             Console.WriteLine(message);             writer.WriteLine(message);         }     } } 

}

I am very stuck why the above code could / would do this. It is sort of just I want to know and partly, could this happen to a real clients machine, or just is my bosses machine infected or something.

Thank you

  • 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. 2026-05-10T21:55:56+00:00Added an answer on May 10, 2026 at 9:55 pm

    Something is very wrong if you end up in NTVDM, as this is the 16-bit DOS emulation layer for XP. If this happens again after you recopy the EXE across, I’d investigate the software installed on your boss’s PC (.NET framework version, etc).

    I’d also try running this in WinDbg to see where you end up, get a call stack once it faults out etc, I bet you’ll find a strange module on the stack (spyware, etc).

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

Sidebar

Ask A Question

Stats

  • Questions 94k
  • Answers 94k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer use the maven-assembly-plugin. Example: <build> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <descriptorRefs>… May 11, 2026 at 6:53 pm
  • Editorial Team
    Editorial Team added an answer You are taking opaque data and, it would appear, attempting… May 11, 2026 at 6:53 pm
  • Editorial Team
    Editorial Team added an answer It is quite easy actually. The way you are searching… May 11, 2026 at 6:53 pm

Related Questions

I had been happily coding along on a decent sized solution (just over 13k
I have always thought that the .equals() method in java should be overridden to
I have the following interface which I'm trying to make COM-visible. When I try
I am trying to structure my code in such a way to reduce/avoid code

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.