473,382 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Debugging a run program in VB

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
Nov 20 '05 #1
4 1480
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

Nov 20 '05 #2
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!
Nov 20 '05 #3
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/vxoriDebuggingManagedCode.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*****@hotmail.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.public.dotnet.languages.vb
Date: Fri, 05 Sep 2003 07:16:59 -0700
NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
Lines: 1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:134682
X-Tomcat-NG: microsoft.public.dotnet.languages.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!


Nov 20 '05 #4
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!
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
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...
5
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...
4
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...
8
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...
10
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...
1
markmcgookin
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...
0
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...
0
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...
0
jwwicks
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...
2
jwwicks
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.