IT Community - Software Programming, Web Development and Technical Support

NTVDR Problem

This is a discussion on NTVDR Problem within the C# Programming forums, part of the Software Development category; Hi, I am calling the c exe from C#.NET website using System.Diagnostics.Process class. While calling the exe, ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 06-15-2007, 05:31 AM
Balasubramanian.S Balasubramanian.S is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 182
Balasubramanian.S is on a distinguished road
Default NTVDR Problem

Hi,

I am calling the c exe from C#.NET website using System.Diagnostics.Process class. While calling the exe, the following error occurred.

---------------------------
16 bit MS-DOS Subsystem
---------------------------
C:\WINDOWS\system32\ntvdm.exe
Error while setting up environment for the application. Choose 'Close' to terminate the application.
---------------------------
Close Ignore
---------------------------

Can anyone tell me how to solve the problem?


Thanks...

S.Balasubramanian..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-30-2007, 01:23 AM
vadivelanvaidyanathan vadivelanvaidyanathan is offline
D-Web Genius
 
Join Date: Feb 2007
Posts: 803
vadivelanvaidyanathan is on a distinguished road
Default Re: NTVDR Problem

Here is what i got from googling the info.Most ntvdm errors can be fixed by modifying the TEMP and TMP environment settings to make them 8.3 namespace compatible.

The default path for the TEMP directories is %USERPROFILE%\Local Settings\Temp

Which will (typically) expand to something like:
C:\Documents and Settings\Administrator\Local Settings\Temp

16 bit applications can’t manage the spaces or long file names, and will generate ntvdm errors, even if they are not explicitly referencing the TEMP directory.

You can either use a common temp location (e.g. C:\Temp) or use the short version of the path. For the Administrator ID, the short filename path is C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP

Your can check these names by using ‘dir /x’
The variable settings can then be changed for each user by going into

My Computer -> Properties -> Advanced -> Environment Variables ->
Set TEMP and TMP to c:\temp or the short filename version

You should also consider the PATH environment variable, and any INI files that may be used. The short filename for the "c:\Program Files" directory is "c:\progra~1"
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-29-2008, 06:55 AM
levelup levelup is offline
D-Web Trainee
 
Join Date: Sep 2008
Posts: 18
levelup is on a distinguished road
Default Re: NTVDR Problem

Thanks for all your post, I have the same problem and now it has been sorted
__________________
business card printing
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/c-programming/1490-ntvdr-problem.html
Posted By For Type Date
C# Programming [Archive] - DiscussWeb IT Community - Technical Support and Technology Discussions This thread Refback 03-06-2008 09:21 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
a new problem? saravanan Computer Hardware 0 03-24-2008 07:09 AM
Laptop problem ammulu Computer Hardware 1 02-11-2008 03:31 AM
Problem in IE krishnakumar HTML, CSS and Javascript Coding Techniques 13 11-28-2007 09:51 PM
Problem on .net 3.0 WPF! theone C# Programming 0 07-19-2007 10:56 PM
DNS problem vadivelanvaidyanathan Server Management 0 07-15-2007 06:49 PM


All times are GMT -7. The time now is 05:27 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0