473,499 Members | 1,598 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

exception handling of Helpprovider

Hi,
This is not a solution in search of a problem but I think I found if
not a bug then at least a serious deficiency in the HelpProvider
class. I use it on a form in VB where I have assigned its
HelpNamespace property to a chm file. The form has a questionmark
button. Controls on the form have their helpnavigator-on-helpprovider
property assigned to various topics. If I run the program with the
HelpNamespace property mistakenly refering to a non-existent help file
then the app crashes with an "Object reference not set to an instance"
exception. Does anyone know where to handle this error with a
try-catch block? At the moment my program sometimes only raises the
exceptions in the WndProc moethod and gets by if there's a try catch
block there. Othertime it
just dies having reached the outermost try-catch block I've inserted
around

Application.Run(myform)

Unless anyone knows how to catch exceptions from the helpprovider
class then I think it would be good could MS allow the HelpProvider
class to raise exceptions in a less violent and more descriptive
fashion.

rob
Jul 21 '05 #1
0 1281

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

Similar topics

0
1638
by: Yoshitha | last post by:
Hi, I want help regarding providing information about form and controls which are presented on the form. when ever user presses f1 if the form has focus then it has to provide information about...
0
1318
by: trialproduct2004 | last post by:
Hi all I am having application with is using class helpprovider. This class is used for opening help file. I have chm file which i am displaying using helpprovider class. My problem is when i...
3
2735
by: Master of C++ | last post by:
Hi, I am an absolute newbie to Exception Handling, and I am trying to retrofit exception handling to a LOT of C++ code that I've written earlier. I am just looking for a bare-bones, low-tech...
2
5350
by: Dennis C. Drumm | last post by:
How do we set the HelpNamespace property of the HelpProvider class, so that when the application is deployed the path will be correct, since the path cannot be known for sure ahead of time? This is...
3
2442
by: cristiank | last post by:
hi everybody, I need to clear something out, does anybody have ever encountered such an exception until now : "Un unhandled exception of type System.NullReferenceException occurred in...
44
4155
by: craig | last post by:
I am wondering if there are some best practices for determining a strategy for using try/catch blocks within an application. My current thoughts are: 1. The code the initiates any high-level...
2
6094
by: Yoshitha | last post by:
I want help from u regarding providing information about form and controls which are presented on the form. when ever user presses f1 if the form has focus then it has to provide information about...
0
257
by: Rob Oeffner | last post by:
Hi, This is not a solution in search of a problem but I think I found if not a bug then at least a serious deficiency in the HelpProvider class. I use it on a form in VB where I have assigned its...
0
1856
by: PromisedOyster | last post by:
I am experiencing some difficulties using the HelpProvider class. If I have the following code in the constructor of my form then the help string "Help Text" gets shown when I click the question...
0
7130
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
7007
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
7171
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,...
1
6893
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...
0
7386
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
5468
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 project—planning, coding, testing,...
1
4918
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
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
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 ...

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.