473,327 Members | 2,025 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,327 software developers and data experts.

Crash on exit

My vb.net 2003 app crashes on exit with an unhandled Win32 error. It happens
after my last line of code.

How do I go about debugging this? I'm hoping for something better than
commenting out code until it works again, but if I have to then I will.

I'm new to vb.net but old to programming, so any suggestions no matter how
simple will be greatly appreciated.
Jul 22 '05 #1
3 1388
John,

What I would do is adding a closing event with a stop in that to my program
and hope that it will stop on that place. Than I can go on with debugging.
(And delete that event and its code afterwards of course)

FYI probably more persons can help you with this question in the newsgroup.
microsoft.public.dotnet.languages.vb

I hope this one helps anyway.

Cor
Jul 22 '05 #2
Are you using a third-party control or some unmanaged resources? Any calls
to the old Windows API that we should know about?

It sounds like your app hits garbage collection and is erroring out when
attempting to release an object that uses unmanaged resources.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"John Davies" <Jo********@discussions.microsoft.com> wrote in message
news:27**********************************@microsof t.com...
My vb.net 2003 app crashes on exit with an unhandled Win32 error. It
happens
after my last line of code.

How do I go about debugging this? I'm hoping for something better than
commenting out code until it works again, but if I have to then I will.

I'm new to vb.net but old to programming, so any suggestions no matter how
simple will be greatly appreciated.

Jul 22 '05 #3
I started hacking out large segments of code and got it down the the VB
PowerToy FileList. I replaced it with a listbox that I populated myself and
the problem went away.

When I get a moment I want to track it down for the developers.
Jul 22 '05 #4

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

Similar topics

8
by: Jean-Marc Blaise | last post by:
Hi, I'm on Linux Intel, V8.1 / FP4. I have an instance crash. The test case: db2set DB2_FMP_COMM_HEAPSZ = 0 db2stop db2start db2mtrk -i -d -p -v ==> Instance is crashed.
10
by: xixi | last post by:
i have db2 udb v8.1 on windows 64 bit 2003 server, after db2 server start , i found this in the db2diag.log, is this error? 2004-05-05-15.28.30.780000 Instance:DB2 Node:000...
4
by: hinrich | last post by:
Hello, I have a completely new system (windows xp prof.), office xp 2002 with sp 3. When I create a new and empty Accesss database, create an empty table and then create a new form using a...
7
by: Jamma | last post by:
Hello, I have an Access 2000 file working on XP machines and a NT network. The files are split and 95% of the time all is well and stable. The main issue arises when the app prints,a novell...
1
by: Charles Law | last post by:
I seem to be posing a lot at the moment, so please accept my apologies. I can't say, categorically that the Infragistics tools are to blame, but I have had this intermittent problem now for two...
4
by: Jared Kitcher via .NET 247 | last post by:
I am working on a .Net project and our application randomlycrashes with no exception being thrown. The application justdisappears, like someone would have clicked the exit button. This occurs both...
5
by: Rarlfth Nadar | last post by:
Create a new solution, add a class... Public Class Class1 Public Sub New() .New() '<----- This line will blow up the IDE
9
by: Droopy | last post by:
Hi, I am running an application on 74 PC (1 instance on each PC). This morning, 2 applications crashes. There were neither popup windows signaling it nor dump file created. I only find in the...
3
by: Lyndsey.Ferguson | last post by:
Hello Everyone, I am investigating a crash within our application that has me stumped. I am developing for Mac OS X, but I believe that this may be a regular gcc c++ type question. Here is...
3
by: lookaround | last post by:
Hi everyone, I need some help... I call an external exe (a command-line tool) with Process.Start through this code: try { p = new Process(); p.StartInfo.UseShellExecute = false;...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.