473,505 Members | 16,940 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calling the Windows Error Reporting message for unhandled exceptio

We are trying to implement Windows Error Reporting from within our VB.Net
application. Basically we want to replace the standard unhandled exception
message we use with the Windows Error Reporting message. This will provide
our users the ability to send the crash report to Microsoft, which in turn
will allow us to get it.

We did a search for Visual Studio help to see what that might turn up and
came across the “ReportFault” function. Help says that the “ReportFault
function allows an application that performs its own exception handling to
report faults to Microsoft.” Unfortunately, there were no examples of just
how to use the function in VB 2005.

Further searching the web for ReportFault and Microsoft turned up an example
on the function’s use. However the example was for VB6. When we created a
project using VB6 with the sample code, the sample project worked. The VB6
application called the Windows Error Reporting message. However, when we
converted the code over to VB 2005, it no longer worked. We tried making
modifications to the code, and removed all build errors from it. However the
code failed to call the Windows Error Reporting message as the VB6 version
did.

Does anyone know how to trigger the Windows Error Reporting message box when
an exception is unhandled in VB 2005?

The sample VB6 code that I made reference to above can be found at:

http://www.mentalis.org/apilist/ReportFault.shtml# (See the example link at
the bottom of the page)
Any assistance with this matter would be greatly appreciated.

Kindest regards,

Josh

Dec 23 '05 #1
0 2622

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

Similar topics

8
17430
by: Glenn A. Harlan | last post by:
Why am I receiving the below error when calling - Path.GetTempFileName() The directory name is invalid. Description: An unhandled exception occurred during the execution of the current web...
2
9515
by: Steph | last post by:
I am working on a Windows Forms App. I have attached a standard UnhandledExceptionEventHandler to the current domain to catch unexpected errors. In my application, when I trigger an unhandled...
2
7778
by: Raed Sawalha | last post by:
i have a windows form(Main) with listview, when click an item in listview i open other window form (Sub) which generate the selected item from parent window in as treeview items when click any item...
4
5595
by: Groundskeeper | last post by:
I can't seem to get a custom UnhandledException handler working for a Windows Service I'm writing in VB.NET. I've read the MSDN and tried various different placements of the AddHandler call, to no...
2
5304
by: RdS | last post by:
Hello, I use sourcesafe and vb 2003 for my dev environment. on the sourcesafe server I also have sql2005 and reporting services installed. The web app references this sql server for db. When...
1
3606
by: Matthew Townsend | last post by:
Does anyone know how to use ReportFault or the new WER API from within .net. I know I can use pinvoke but I am wondering if there is support already for it in the .net framework. It seems like...
14
2100
by: Alan | last post by:
Good afternoon, I'm having difficulties loading a dll in Microsoft Visual Studio 2003, that was supplied to me by another company. They have supplied me with test code, which causes my program...
0
2076
by: Steve | last post by:
Hello- Platform: - web server using IIS 6 connecting to UNC share on separate file server - Both servers are Windows 2003 with dotNetFramework 2.0 General: - basic ASP.NET pages work fine...
0
3204
by: pinky22 | last post by:
I am calling SSIS package from a .Net windows UI. Both SSIS & .Net app are created in 2008. The SSIS package is stored in file system. When I ran .Net app I got error- The package failed to...
0
7218
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,...
0
7103
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
7307
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
5614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
1
5035
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
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1532
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 ...
1
755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.