I was running a simple calculator program in
visualbasic.net 2002 with a windows applications on XP
Home, when this message popup as a Microsoft Development
Environment box and said following:
Attaching the .NET debugger to process'[####] Take-home
pay calculator.exe' on machine 'name of my machine'
failed. Error code 0x80004002.
If anyway could direct me in solving this problem, it
would help me very much. Thank you 4 1500
John,
My best guess is that your calculator program threw an exception. You
probably have just-in-time debugging turned on, but when the code which
brings up the debugger on exceptions got fired, it, too, encountered an
error. In this case, 0x80004002 is E_OUTOFMEMORY -- "Out of memory," which
would explain why both the calculator program and the debugger failed.
(And then once both shut down, you regained enough memory to keep the rest
of the system going.) Perhaps your calulcator program has a memory problem
(that would seem the most likely, if everything else kept working after it
shut itself down); you might check from that angle first.
Let us know how it goes!
--Matt Gertz--*
VB Team
Hi Matt,
Thanks for the recommandation for my problem, but I am pretty much as a
novice in interrupting computer language. Are there ways that I can
find this problem by going through the menu or toolbar paths of my VB,
or should try going through the start menu. If so, what paths do you
consider I should go down. Thanks.
John
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
With a problem like this, the best approach is to step through it in Visual
Studio, since low memory situations are difficult to debug by attaching to
existing processes -- F5 to run to a breakpoint near where you think the
problem must occur, and then start stepping. (I'm assuming that you wrote
the calculator program, or at least have access to the code. If not,
you'll need to drag in the calculator code's author in to look at it, since
otherwise you can't grok what's going on unless you enjoy analyzing reams
of IL code :-)).
The web page http://msdn.microsoft.com/library/de...us/vsdebug/htm
l/vxoriDebuggingM anagedCode.asp contains a number of articles of how to
debug through managed code (such as VB code). Check it out and see if any
of it helps.
If it doesn't help, post another response and let me know, and I'll be
happy to suggest some pointers. (When you say "novice," do you mean you
are new to the VB programming language and new to debugging in general? If
so, please indicate that, and I'll tailor my comments to address that
angle.)
--Matt--*
-------------------- From: John Knapp <kn*****@hotmai l.com> References: <40************ **@cpmsftngxa06 .phx.gbl> X-Newsreader: AspNNTP 1.50 (ActionJackson. com) Subject: RE: Debugging a run program in VB Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-ID: <ee************ **@TK2MSFTNGP10 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.langua ges.vb Date: Fri, 05 Sep 2003 07:16:59 -0700 NNTP-Posting-Host: actionjackson13 3.dsl.frii.net 216.17.147.133 Lines: 1 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:134682 X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
Hi Matt,
Thanks for the recommandation for my problem, but I am pretty much as a novice in interrupting computer language. Are there ways that I can find this problem by going through the menu or toolbar paths of my VB, or should try going through the start menu. If so, what paths do you consider I should go down. Thanks.
John *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
Hi Matt,
First, I didn't write this program; I download it from the website of
the textbook that I am learning VB from. Second, I try to go to the web
page that you recommand, but it could not be found. Third, I am new to
both VB programming language and debugging. I hope that you have the
patient in leading me through this situation, if so, I will be very
grateful. Thanks.
John
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ZMan |
last post by:
Scenario:
This is about debugging server side scripts that make calls to
middle-tier business DLLs. The server side scripts are legacy ASP 3.0
pages, and the DLLs are managed DLLs converted/developed with VB.NET.
What I want from debugging is to be able to step into the methods in
the DLLs called from ASP scripts using Visual Studio .NET.
Background:
For typical script debugging issues, you can read and follow the two
documents on...
|
by: snicks |
last post by:
I'm trying to exec a program external to my ASP.NET app using the following
code. The external app is a VB.NET application.
Dim sPPTOut As String
sPPTOut = MDEPDirStr + sID + ".ppt"
Dim p As New System.Diagnostics.Process
'p.Start(MDEPDirStr & "macrun.exe", sPPTOut)
p.Start("C:\WINDOWS\SYSTEM32\CALC.EXE")
'p.Start("C:\WINDOWS\SYSTEM32\macrun.exe", sPPTOut)
|
by: yinglcs |
last post by:
I am trying to debug a C++ program in GDB on linux.
I want to dump out the content of the "this" object,
Here is what I get:
(gdb) print *this
$2 = {path = <incomplete type>}
My question is why I don't see the content of 'path'? It said
'<incomplete type>'.
In the code, path is:
|
by: razael1 |
last post by:
I am putting debugging messages into my program by putting blocks that
look like this:
#ifdef DEBUG
errlog << "Here is some information";
#endif
All these #ifdef blocks make the code bulky and harder to read, so I'd
like to do something where I put:
errMsg("Here is some information");
|
by: Doug Robertson |
last post by:
First off, I'm a hardware/OS guy. I just write code on the side and I'm
completely self taught - so bear in mind my total lack of expertise.
I have a program originally written in VB2003 using the dotnet 1.1
framework. The program makes extensive use of Win32 API calls to help manage
and track remote access sessions with out clients. I've left it running for
days at a time on my system with no problems. It has always been stable.
I...
| |
by: markmcgookin |
last post by:
Hi Folks, this is a problem I had a few days ago, and I was able to solve it, but I thought I'd post the solution I found here incase anyone has a similar problem!
I found this stuff on an MSNDN forum.
|
by: Benny |
last post by:
I have been trying to instal AutoCAD 2008 on a single PC and get the
following
Microsoft .NET Framework security error.
I have updated to the latest .NET Framework 2.0 software, however, this
error occurred with only v1.1 installed.
I also got the same error when trying to install an old ACAD 2005 version
(as
a check). I have successfully installed this version a couple of years ago.
|
by: stimpy_cm |
last post by:
Hi everyone, I’m not a programmer but have a little notion about how
things work. I recently downloaded an emulator for my calculator (Texas
Instruments Voyage 200), the program uses a library created for .Net
framework 1.0 and 1.1. I also activated the compatibility mode for
Windows XP SP2 (Which it was the OS the programs were created for). By
the way I’ve an HP Pavillion with Intel Core 2 Duo 2.0Ghz processor, and
my OS is Windows Vista...
|
by: jwwicks |
last post by:
Introduction
This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the beginning CIS student who is struggling to get their programs working. I work in the computer lab at the college I'm attending and I see many students who don't know how to use the IDE for best results.
Visual Studio automatically creates a number of...
|
by: jwwicks |
last post by:
C/C++ Programs and Debugging in Linux
This tutorial will give you a basic idea how to debug a program in Linux using GDB. As you are aware Visual Studio doesn’t run on Linux so you have to use some of the tools provided on the command-line. If you hate the command line tools, get over it since you’re bound to be using them at some point in your career. All commands in Linux ARE case sensitive so capital letters are different from lowercase...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |