473,226 Members | 1,321 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

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 1730
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.CurrentUser.GetValue(RegistryKey, Nothing).ToString

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

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

"stax" <_r************************@yahoo.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.CurrentUser.GetValue(RegistryKey, Nothing).ToString

That line returns Nothing, and you get a NullReferenceException 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.com

"stax" <_r************************@yahoo.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.CurrentUser.GetValue(RegistryKey, Nothing).ToString

That line returns Nothing, and you get a NullReferenceException 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.ThreadException 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
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...
8
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...
6
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
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...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.