Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 5th, 2004, 01:46 AM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to MelissaEvans
Default "An error log is being created"... where?

I have a pretty big app that I've made some changes to and all of the sudden I get the error:
VB6.exe has generated errors and will be closed by Windows.
You will need to restart the program.

An error log is being created.
I don't know what changes could have caused this and for the life of me, I can't find the error log it mentioned. It's not with my VB project or the VB.exe... any ideas?

Thanks!
~Melissa
 
Old February 5th, 2004, 11:50 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

1. Try the Dr. Watson log (Dr. Watson Errors are windows system errors and thats what this looks like).

2. Try the System & Application Event logs.

It is also possible that no error log is really created despite Windows saying there is one. How good is the error handling in your application? Try to shore it up. You might be able to trap the error (though possibly as I said above it is a Windows System Error and those are not always trappable).

Yehuda
 
Old February 5th, 2004, 02:33 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Melissa,
what do you mean for 'pretty big'? VB has some limitations, and if you hit them VB goes crazy skipping even error handling.
Look for the log files in the windows\system32 folder.
Marco
 
Old November 25th, 2004, 12:25 AM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Melissa,

Were you successful with the vb6.exe error issue? I am seeing the same problem as well and have no idea what is causing it.

Thanks
-d

 
Old November 29th, 2004, 01:01 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Usually the way to find what the trouble is is to add a routine that writes to a file of your choosing, and put copious entries into that file denoting what is going on. entries when entering functions, entries when leaving them, actual strings that will be used to open recordsets or files, etc., including the time with each entry.

When the error occurs, go to that file to find out where you were just prior to the error.

I am a big fan of using the Windows Scripting Host, the FileSytemObject within it, the TextStream object of the FileSystemObject, and the WriteLine method of the TextStream Object.

Just a wee bit of code goes a long ways.
 
Old January 14th, 2005, 06:39 AM
vde vde is offline
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

The default location where drwatson's logs are created is :

C:\Documents and Settings\All Users\Documents\DrWatson

If you can't find it there, do a search on drwtsn32.log.

Regards

Vincent Deswert






Similar Threads
Thread Thread Starter Forum Replies Last Post
Transaction Log Error [email protected] SQL Server 2000 1 June 4th, 2008 09:26 PM
Log in page error zhugeliang ASP.NET 2.0 Basics 0 July 16th, 2006 04:14 PM
Error : Mutex could not be created Rohit Ranjan .NET Web Services 1 November 14th, 2005 10:58 AM
Log In error on another machine lpastor Crystal Reports 2 April 18th, 2005 09:15 AM
AppException Class -Log Error to Event Log bekim BOOK: ASP.NET Website Programming Problem-Design-Solution 7 December 7th, 2004 01:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.