473,416 Members | 1,564 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,416 software developers and data experts.

Determine form/VBA procedure from Access crash dump?

Back in my mainframe days a crash dump could be parsed by hand to
reveal the application program running at crash time as well as the
offset into said program, which combined with a extended program
listing could be used to determine the partcular application program
statement that killed the thing.

I realize this is a totally different world, but is there a way at
least to determine which form had control at access-decides-to-croak
time? I've got a situation in which closing a form kills Access like
a big dog, and I'm stymied. All my tables/recordsets are closed, and
I've even unbound the bound list box that is the only data-aware item
on the form.

Alternatively, is there a way to force Access to step thru it's own
code and into the code of other forms? I've checkpointed all the
Form_* procedures in the invoking form but get no hits. It leaves the
close of the invoked form and never reaches the Form_* procedures of
the invoker, so I'm stuck.

Help!

Mark Loveless
Reluctant Access Programmer
Nov 12 '05 #1
2 2177
Mark,
It's a pain, but a class module that is an application scope event handler
can be written which logs significant events as they occur. Then a perusal
of the logs will give some hints as to what was croaking when things went
bad. I have my own code, there may be sample stuff around you can start
from. VBA includes a break mode where you can step through code as it
executes and see where it died.
The smart thing to do is to always write your code using functions instead
of subs so that you can at least return a result code indicating whether the
funciton did what it was supposed to or hosed for some reason. Then when a
function errors out you can log the event code and try to sort out what it
meant.

"Mark Loveless" <ma**@tralfaz.com> wrote in message
news:4a**************************@posting.google.c om...
I realize this is a totally different world, but is there a way at
least to determine which form had control at access-decides-to-croak
time? I've got a situation in which closing a form kills Access like
a big dog, and I'm stymied. All my tables/recordsets are closed, and
I've even unbound the bound list box that is the only data-aware item
on the form.

Nov 12 '05 #2
"Mark Loveless" <ma**@tralfaz.com> wrote in message
news:4a**************************@posting.google.c om...
I've got a situation in which closing a form kills Access like
a big dog, and I'm stymied. All my tables/recordsets are closed, and
I've even unbound the bound list box that is the only data-aware item
on the form.


Do you have any code in the on-close event?

You always place the following command in code:

Stop

The above command will invoice the de-bugger in code. (however, you have
mentioned you are setting break points anyway.....you do know how to set
break points with he mouse in the VB ide...right?

Also, while looking at code..can you do a save and compile all?...you might
have some errors hanging? (can you for example create a mde file?).

It turns out that office DOES in fact do a core dump via Dr. Watson. These
errors (if you choose to hit send) actually get sent to Microsoft for them
analyze.As a results.. if users experience a crash..then MS can fix it in
the next update. While similar to the old days where execute error
occur..what is different is that MS can now get this info in real time (if
you hit send)..

There is also a great article on debugging VBA code.. Lots of great hints
(like how to show the calling program stack of routines called to get you to
a given point).

Check out:

http://www.fmsinc.com/tpapers/vbacode/Debug.asp
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.attcanada.net/~kallal.msn
Nov 12 '05 #3

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

Similar topics

2
by: gigi | last post by:
I have a strange problem with an OleDB call to a stored procedure that returns a rowset. Only the first time I execute the query, after I restart SqlServer, my program crashes because the rowset...
0
by: richardshen | last post by:
My DB2 V8 SP5 WSE crash on Windows 2003 with the following msg in db2diag.log. Any idea? Looks like I need set stackreserver, what is the suggested value for that? 2004-03-05-12.20.46.299000 ...
5
by: NG | last post by:
Hi, We are having DB2-V7.2 DB on AIX 5.2 machine. Recently we upgraded our system to fixpack 13 and activated activate AIX asynchronous IO function. Our DB is going to crash recovery with...
4
by: Jan | last post by:
I have a form with a large procedure in MS Access 2000. I had just added some more code and performed Compress and Repair when the following problem came up: When I try to open the procedue from...
2
by: Composer | last post by:
One form in my Access 2000 mdb causes a crash whenever I close it. The crash is of the type where I get a "Please tell Microsoft about this problem". Easy, you think! Well, here are the things...
1
by: tony | last post by:
hi. my NET application is using mixed c++ dll ( managed and unmanaged) in that dll , im calling api's of unamanged dll. my application crash with no exception or warning. its hard to...
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...
10
by: wong_powah | last post by:
I want to find out where (which line) my C program core dump. How to do that? Is there a web site describing the procedure? One approach is to use stack trace of the mdb debugger, but I does not...
17
by: DeZZar | last post by:
Hi all, I need to regularly backup my database as an Excel file and have been using the File Export option. Problem is I need anyone using the database to be able to do this easily - nopt...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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...
0
Oralloy
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.