473,396 Members | 1,871 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,396 software developers and data experts.

illogical error

Hi,

i have a program which worked without trouble several times.
but sometimes, i have such error.

"An unhandled exception of type 'System.NullReferenceException' occurred
in Unknown Module."

it occurs not everytime as i already told and on this part of program :

Dim XmlDoc as XmlDocument
XmlDoc = New XmlDocument (error here)

why ?
i've read on internet that it can come from .Net framework but i updated
it to v1.1 SP1
So ?

thanks a lot,
Maileen
Nov 21 '05 #1
5 887
Maileen,

This is strange because your syntax is the same as
VB2003/VB2005

Dim xmldoc as New System.Xml.XmlDocument

Are you sure it is on that place, one line of code can be in my opinion
never give an error or it should be a stack or memory overflow.

I hope this helps,

Cor
Nov 21 '05 #2
I' very sure that it is on this line...
this is why it sounds strange for me.
moreover, sometimes, it works, sometimes not....
insame thing :(

Maileen

Cor Ligthert [MVP] wrote:
Maileen,

This is strange because your syntax is the same as
VB2003/VB2005

Dim xmldoc as New System.Xml.XmlDocument

Are you sure it is on that place, one line of code can be in my opinion
never give an error or it should be a stack or memory overflow.

I hope this helps,

Cor

Nov 21 '05 #3
Maileen,

Sometimes strange illogical errors come because of not wanted recursive use.

Is this code in an event procedure?

Otherwise show us something from the surrounding of that code.

Cor
Nov 21 '05 #4
nothing is recursive...but i solved ths issue...
my function where this was defined, was as private sub from my class...
it should be working without trouble, but it was not.
so i export it to a module as public function...and since, there is no
more such issue.

I just had to create some reference instead of passing byval, but
nothing special in code changed...except scope of function.

Maileen

Cor Ligthert [MVP] wrote:
Maileen,

Sometimes strange illogical errors come because of not wanted recursive use.

Is this code in an event procedure?

Otherwise show us something from the surrounding of that code.

Cor

Nov 21 '05 #5
> "An unhandled exception of type 'System.NullReferenceException' occurred
in Unknown Module."
Does this problem happen rarely and only in the .NET IDE? I believe there
is a problem in the .NET IDE in this area, and I guess it is related to how
much memory you have. I have posted to these newsgroups a simple program
that recreates it and have gotten no reply or explanations. I suggest that
you:

1. Try your program outside the IDE and see if the problem continues. If
it does, then my suggestion is wrong.
2. For interesting reading, search these newsgroups (MSDN Newsgroups) for
unknown module.
i've read on internet that it can come from .Net framework but i updated
it to v1.1 SP1


I'm 2003 IDE v7.3, FW v1.1 SP1. Running under XP SP2.

Nov 21 '05 #6

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

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
5
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information...
1
by: Aravind | last post by:
we have two files: 1. rc4.c (defines one function "create_pin()") 2. MyImpl.c(calling the function "create_pin()"),This implements JNI method. 1.When I am trying to create .dll file with one...
1
by: yanwan | last post by:
I met this problem in executing a c++ project in visual studio. Does anyone have suggestions to resolve "error lnk 2001"? --------------------Configuration: reconstruction - Win32...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
2
by: Philipp Schumann | last post by:
Dear all, I'm in the process of designing a distributed application on the basis of ASP.NET, which does not contain of scripts, but of assemblies containing classes that implement IHttpHandler...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
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
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,...

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.