473,659 Members | 2,664 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What does this error dialog mean?

Hi,
lately a lot users of my application complain it won't even startup, there seems to be a few problems.
Here is a screenshot a user made of a error dialog I've never seen before:

http://server2.ihostphotos.com/show.php?id=61788
Here is my source code:

http://www.planetdvb.net/staxrip/download_src.htm
I've absolutely no clue how to deal with such problems, just too often people file bug reports that cannot be reproduced on my machine, very frustratung everytime. Most of the time I don't know what to tell those people other than wild guesses.

Thanks in advance

Frank
Jan 9 '06 #1
4 1747
Frank,

I don't see how you couldn't get this. I ran the code and I got the
exception the first time.

The issue is with the line:
RegistryHelp.Cu rrentUser.GetVa lue(RegistryKey , Nothing).ToStri ng

That line returns Nothing, and you get a NullReferenceEx ception as a
result since you can't call ToString on Nothing.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"stax" <_r************ ************@ya hoo.de> wrote in message
news:dp******** **@online.de...
Hi,
lately a lot users of my application complain it won't even startup, there
seems to be a few problems.
Here is a screenshot a user made of a error dialog I've never seen before:

http://server2.ihostphotos.com/show.php?id=61788
Here is my source code:

http://www.planetdvb.net/staxrip/download_src.htm
I've absolutely no clue how to deal with such problems, just too often
people file bug reports that cannot be reproduced on my machine, very
frustratung everytime. Most of the time I don't know what to tell those
people other than wild guesses.

Thanks in advance

Frank

Jan 9 '06 #2
Nicholas Paldino [.NET/C# MVP] schrieb:
Frank,

I don't see how you couldn't get this. I ran the code and I got the
exception the first time.

The issue is with the line:
RegistryHelp.Cu rrentUser.GetVa lue(RegistryKey , Nothing).ToStri ng

That line returns Nothing, and you get a NullReferenceEx ception as a
result since you can't call ToString on Nothing.

Hope this helps.


Thanks a lot, very stupid bug, happens if you got DivX before version 6.0.3. That class is one of the most painful I've ever worked as DivX breaks compatibility just to often and I have to rework it everytime. I fiddle with this class for years. Just recently I had to modify it because of some 64 bit system weirdness and that's were the bug slipped in. I just have to figure out why the native error dialog pops up instead of the .NET one giving at least a stack trace.

Thanks,
Frank
Jan 9 '06 #3
Frank,

That is more a bug on your part than on theirs. You are assuming the
presence of a registry key which does not exist. You should make the code a
little more tolerant in this event, and have the application indicate that
something is amiss to the user.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"stax" <_r************ ************@ya hoo.de> wrote in message
news:dp******** **@online.de...
Nicholas Paldino [.NET/C# MVP] schrieb:
Frank,

I don't see how you couldn't get this. I ran the code and I got the
exception the first time.

The issue is with the line:
RegistryHelp.Cu rrentUser.GetVa lue(RegistryKey , Nothing).ToStri ng

That line returns Nothing, and you get a NullReferenceEx ception as a
result since you can't call ToString on Nothing.

Hope this helps.


Thanks a lot, very stupid bug, happens if you got DivX before version
6.0.3. That class is one of the most painful I've ever worked as DivX
breaks compatibility just to often and I have to rework it everytime. I
fiddle with this class for years. Just recently I had to modify it because
of some 64 bit system weirdness and that's were the bug slipped in. I just
have to figure out why the native error dialog pops up instead of the .NET
one giving at least a stack trace.

Thanks,
Frank

Jan 9 '06 #4
Nicholas Paldino [.NET/C# MVP] schrieb:
Frank,

That is more a bug on your part than on theirs. You are assuming the presence of a registry key which does not exist. You should make the code a little more tolerant in this event, and have the application indicate that something is amiss to the user.


I really didn't expect this because I thought when DivX is not installed this code will never be executed. In the ctor of my startup form I subscribe to the Application.Thr eadException event in case something goes wrong I did not expect and handle nowhere. This invokes some code giving users a chance to file a bug report. After I subscribe to the event still being in the ctor of the startup form the exception occurs. Some might think now the ThreadException handler will kick in but it doesn't and if this is not worse enough the native error dialog pops up and not the .NET one giving a nice stacktrace. Generally, I tested this on a newly created forms project, whenever a exception in the ctor of a startup form happens and is not handled by a try catch block the native error dialog pops up, might this be a .NET bug or at least limitation? I think it's good to know this otherwise it might cause some headache, it did in my case so thanks again for your help.

Regards,
Frank
Jan 9 '06 #5

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

Similar topics

8
2044
by: Toni | last post by:
Hello I'm a newbie in VB .NET and I'd like to accomplish a (I think) very simple task. What I want to do is throw an error message to the user whenever something happens. The main point is that the message must stop the code execution, but it sholud not close the application nor show the classical exception window (the one with JIT compiler information).
8
3144
by: Midnight Java Junkie | last post by:
Dear Colleagues: I feel that the dumbest questions are those that are never asked. I have been given the opportunity to get into .NET. Our organization has a subscription with Microsoft that basically entitled to us to just about every .Net development tool you can imagine. I cant even begin to mention them. To begin with, my background is not that of a programmer, but a systems engineer and the closest I have come to "programming"...
6
37792
by: **Developer** | last post by:
What does this mean: External component has thrown an exception. My program crashes after it leaves a subroutine. What I see during debugging is when I press F11 at the End Sub statement
4
19453
by: garyusenet | last post by:
I am at a loss with this. I tried to go back to basics, and start learning all i didn't understand, starting at the top of the code file generated by VS. But I can't seem to get any sort of start on this problem, anything I read on the NET goes too far above my head to be of any use. For instance typical explanations say things like... 'The STAThreadAttribute marks a thread to use the Single-Threaded COM Apartment if COM is needed'
0
8427
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
8330
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
8850
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8746
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...
0
7355
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5649
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();...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
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
1737
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.