473,661 Members | 2,440 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2206
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.c om> wrote in message
news:4a******** *************** ***@posting.goo gle.com...
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.c om> wrote in message
news:4a******** *************** ***@posting.goo gle.com...
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
2619
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 is empty. All next calls (after restarting my program, of course) run successfully. The context is: 1) if I do not bind the output rowset, my program doesn't crash 2) If I run the call without the binding and then I run the call with
0
2411
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 Instance:DB2 Node:000 PID:3800(db2syscs.exe) TID:3864 Appid:*LOCAL.DB2.01F2C5171908 oper system services sqloEDUExceptionFilter Probe:55 Database:TDV8 ADM0501C A stack overflow exception has occurred. The DB2 instance has
5
3874
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 this error 0xFFFFF707. I have attached the related details. Any suggestions is much appreciated.
4
2722
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 the form I get the error message Out of memory, and the VBA window does not open. I have tried to enlarge virtual memory and stacks, without this having any effect. I therefore suspect that this is a problem due to the procedure exceeding the 64k...
2
3202
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 I've tried already, all to no avail: Followed Microsoft's advice and downloaded SR-1 and installed it. Rebooted the computer.
1
2255
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 find when the crash happen ,and where.
9
4990
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 event log an entry signaling a dotnet 2.0 runtime error : Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting
10
7436
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 understand its output completely. e.g. How to interpret the stack trace to find out which line inside the coredump_func function of a test program caused the
17
7834
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 just me. For all users the database is hidden and only a menu screen is visable. Can I create a button on my menu screen that will export a table >
0
8432
marktang
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...
0
8343
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,...
0
8758
jinu1996
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...
1
8545
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,...
0
8633
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6185
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 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...
0
5653
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1743
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.