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
  • 1 View
  • 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

Related Questions

I have encountered a problem that I have not come accross yet when setting
My colleague and I have encountered some rather odd behavour. Our environments are Ubuntu
I have an application that works heavily with many custom objects that are created
I have just encountered something rather strange, I use the Zend Framework 1.10 with
I have encountered various classes that don't allow creation of their instance directly. Rather
I have encountered a rather nasty problem with the DataGridView control (Windows.Forms, .NET Framework
I have encountered odd behavior when using document.getElementById tonight. Duplicated in Firefox 3 and
I have encountered a most annoying problem that occurs on the PWD variable when
We have encountered a very strange class not found problem in our web app
I've just recently begun to use markdown and have noticed that any markdown within

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.