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

Losing exceptions

My call stack has about 6 records in it and most of these points refer back
to runs of code with try/finally and no catch statements.
My program is dropping out at the top of the call stack where it's
attempting to use seek on a memory stream - must be an error here.
The stack is emptying back, finally sections of code are being called and Im
getting no error message.
Should I be getting one? Ive moved from a Delphi background and only
understand how that one works so far - there I'd expect to get errors but
can guarantee that the finally code would run.
(hope you can understand all that)
Nov 16 '05 #1
3 1037
Claire <bl****@blahhhhh.com> wrote:
My call stack has about 6 records in it and most of these points refer back
to runs of code with try/finally and no catch statements.
My program is dropping out at the top of the call stack where it's
attempting to use seek on a memory stream - must be an error here.
The stack is emptying back, finally sections of code are being called and Im
getting no error message.
Should I be getting one? Ive moved from a Delphi background and only
understand how that one works so far - there I'd expect to get errors but
can guarantee that the finally code would run.
(hope you can understand all that)


Not *entirely* sure I understood you - but if you are running on a
thread pool thread, uncaught exceptions won't (by default) do anything
when they've propagated up the call stack.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #2
thanks Jon
I do think you understand.
It may be running in a thread. The code has been instigated by a serial port
DataAvailable event from a third party control so it may well be driven by a
secondary thread. Is there any way of viewing process ids in studio?
Nov 16 '05 #3
Claire <bl****@blahhhhh.com> wrote:
I do think you understand.
It may be running in a thread. The code has been instigated by a serial port
DataAvailable event from a third party control so it may well be driven by a
secondary thread. Is there any way of viewing process ids in studio?


Well, it will certainly be running in *a* thread. Note that this is
separate from processes - they're not the same as threads.

The easiest way of getting more information would be to add a handler
to the UnhandledException event, which I believe gets called even for
ThreadPool threads.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #4

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

Similar topics

1
by: Scott Lyon | last post by:
I'm maintaining (read: I didn't write it, nor do I have the time to spend to rewrite it) an application that is suddenly giving me grief. The reason I say suddenly, is because we're in the...
32
by: Neil Ginsberg | last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC linked tables. I recently created a new set of tables for the app, and users are complaining that unsaved data is being...
4
by: john | last post by:
From my code behind file, I can put a line like this in order to make the page automatically refresh every minute: Response.AppendHeader("Refresh", 60); But the viewstate of the controls is...
5
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the...
9
by: Adrian Parker | last post by:
We have a website that works everywhere but on a few PCs on this one site.. Asp.Net 1.1 Server = Windows 2003 Client = XP In the web.config we use - cookieless="false" in the browser settings...
0
by: Jimmy Reds | last post by:
Hi, Sorry if this appears twice but I post through Google Groups and it had a funny 5 minutes and didn't appear to post this message the first time. I am setting session variables on a page...
2
by: Jimmy Reds | last post by:
Hi, I am setting session variables on a page then doing a header/location redirect to a second page however I am losing one of my session variables. Not all of them, just one. Here are some...
1
by: Anonieko | last post by:
Understanding and Using Exceptions (this is a really long post...only read it if you (a) don't know what try/catch is OR (b) actually write catch(Exception ex) or catch{ }) The first thing I...
2
by: Rico | last post by:
Hello, I wrote a Windows Forms program that works fine using VB.net 2003. I wrote the code in stand alone modules, and used the form to call the subs and functions to make sure everything works...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.