hi all,
I get this error, when i try to execute a query in .NET. Also, this
phenomena is not seen at all times; rareyl i get this - and to my
dismay wen i get this error, .NET is actually executing statements in a
different function.
eg: a()
b()
When I get this error in a(), .NET is actually in b(). I dunno how this
is possible.
foll. is the Exception message caught from the function a()
Object reference not set to an instance of an object. at
System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object&
executeResult)
at
System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior
behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(Comma ndBehavior
behavior)
at <namespace>.<classname>.a()
Can anyone help me out in this.. PLZ ? 7 1417
Hi Freaky,
The exception will bubble to a() if it is not caught in b(), although your
exception message indicates that you are callling ExecuteReader in a(), or
are you perchance doing multi-threading?
On Mon, 11 Sep 2006 07:49:58 +0200, Freaky <cu************@gmail.com>
wrote:
hi all,
I get this error, when i try to execute a query in .NET. Also, this
phenomena is not seen at all times; rareyl i get this - and to my
dismay wen i get this error, .NET is actually executing statements in a
different function.
eg: a()
b()
When I get this error in a(), .NET is actually in b(). I dunno how this
is possible.
foll. is the Exception message caught from the function a()
Object reference not set to an instance of an object. at
System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object&
executeResult)
at
System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior
behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(Comma ndBehavior
behavior)
at <namespace>.<classname>.a()
Can anyone help me out in this.. PLZ ?
--
Happy Coding!
Morten Wennevik [C# MVP]
Hi Morten,
so, do you mean to say that the exception is actually from the function
b() and not from a (). I am not getting you exactly. Can u plz explain
this with depth?
PLZ...i need it ASAP... also i have been trying for finding out an
error in a(), but i am not able to get it...it is ocuuring very rarely.
One more thing is, in a() i execute a five different queries and store
the result(one row is returned everytime) into a 1-D array (each time i
compl. execution of one query, i close the reader, dispose the command
and then continue with the for-loop.) so, is this causing the problem (
i dont think so!).
Also, in b() i do a FTP operation, ie. get the files stored in the
Remote Server. So, when .NET is into this function, i get the error of
"Object ref. not set...".
This is wat exactly is happening...So can u plz suggest me sthng. ( I
hope u understood the problem)
Thx in advance.
Morten Wennevik wrote:
Hi Freaky,
The exception will bubble to a() if it is not caught in b(), although your
exception message indicates that you are callling ExecuteReader in a(), or
are you perchance doing multi-threading?
On Mon, 11 Sep 2006 07:49:58 +0200, Freaky <cu************@gmail.com>
wrote:
hi all,
I get this error, when i try to execute a query in .NET. Also, this
phenomena is not seen at all times; rareyl i get this - and to my
dismay wen i get this error, .NET is actually executing statements in a
different function.
eg: a()
b()
When I get this error in a(), .NET is actually in b(). I dunno how this
is possible.
foll. is the Exception message caught from the function a()
Object reference not set to an instance of an object. at
System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object&
executeResult)
at
System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior
behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(Comma ndBehavior
behavior)
at <namespace>.<classname>.a()
Can anyone help me out in this.. PLZ ?
--
Happy Coding!
Morten Wennevik [C# MVP]
Well,
private void Parent()
{
try
{
A();
}
catch(Exception ex)
{
...
}
}
private void A()
{
B();
}
private void B()
{
ExecuteReader...
}
It will look like A caused an exception, even if the actual exception was
caused by B, however, if this is the case, your stack trace should
indicate that the exception occured in B()
I'm guessing something or other is not set to an instance of an object in
B(). It is a bit unclear to me if this always occurs when in B() or only
rarely.
On Mon, 11 Sep 2006 14:37:47 +0200, Freaky <cu************@gmail.com>
wrote:
Hi Morten,
so, do you mean to say that the exception is actually from the function
b() and not from a (). I am not getting you exactly. Can u plz explain
this with depth?
PLZ...i need it ASAP... also i have been trying for finding out an
error in a(), but i am not able to get it...it is ocuuring very rarely.
One more thing is, in a() i execute a five different queries and store
the result(one row is returned everytime) into a 1-D array (each time i
compl. execution of one query, i close the reader, dispose the command
and then continue with the for-loop.) so, is this causing the problem (
i dont think so!).
Also, in b() i do a FTP operation, ie. get the files stored in the
Remote Server. So, when .NET is into this function, i get the error of
"Object ref. not set...".
This is wat exactly is happening...So can u plz suggest me sthng. ( I
hope u understood the problem)
Thx in advance.
Morten Wennevik wrote:
>Hi Freaky,
The exception will bubble to a() if it is not caught in b(), although your exception message indicates that you are callling ExecuteReader in a(), or are you perchance doing multi-threading?
On Mon, 11 Sep 2006 07:49:58 +0200, Freaky <cu************@gmail.com> wrote:
hi all,
I get this error, when i try to execute a query in .NET. Also, this
phenomena is not seen at all times; rareyl i get this - and to my
dismay wen i get this error, .NET is actually executing statements in
a
different function.
eg: a()
b()
When I get this error in a(), .NET is actually in b(). I dunno how
this
is possible.
foll. is the Exception message caught from the function a()
Object reference not set to an instance of an object. at
System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object&
executeResult)
at
System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior
behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(Comma ndBehavior
behavior)
at <namespace>.<classname>.a()
Can anyone help me out in this.. PLZ ?
-- Happy Coding! Morten Wennevik [C# MVP]
--
Happy Coding!
Morten Wennevik [C# MVP]
hi,
My pgm flow as like this:
parent()
{
a();
b();
I'm sorry, I can't really tell without seeing the code.
Alternately, try the ADONET group
microsoft.public.dotnet.framework.adonet
On Mon, 11 Sep 2006 15:41:53 +0200, Freaky <cu************@gmail.com>
wrote:
hi,
My pgm flow as like this:
parent()
{
a();
b();
.
.
}
a() b()
{ {
try{} try{ }
catch{} catch{}
} }
My pgm finishes with a(), and while executin b(), it is giving an
exception. The stackTrace() says, "obj. ref. not set..." at
System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object&
executeResult)
at
System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior
behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(Comma ndBehavior
behavior)
at <namespace>.<classname>.a()
So Stack trace points to a(), but i cudnt find any null object being
accessed in a(), and strangely i dont get this in a()-- how come?
Thanks
Freak
Morten Wennevik wrote:
>Well,
private void Parent() { try { A(); } catch(Exception ex) { ... } }
private void A() { B(); }
private void B() { ExecuteReader... }
It will look like A caused an exception, even if the actual exception was caused by B, however, if this is the case, your stack trace should indicate that the exception occured in B()
I'm guessing something or other is not set to an instance of an object in B(). It is a bit unclear to me if this always occurs when in B() or only rarely.
On Mon, 11 Sep 2006 14:37:47 +0200, Freaky <cu************@gmail.com> wrote:
Hi Morten,
so, do you mean to say that the exception is actually from the
function
b() and not from a (). I am not getting you exactly. Can u plz explain
this with depth?
PLZ...i need it ASAP... also i have been trying for finding out an
error in a(), but i am not able to get it...it is ocuuring very
rarely.
>
One more thing is, in a() i execute a five different queries and store
the result(one row is returned everytime) into a 1-D array (each time
i
compl. execution of one query, i close the reader, dispose the command
and then continue with the for-loop.) so, is this causing the problem
(
i dont think so!).
Also, in b() i do a FTP operation, ie. get the files stored in the
Remote Server. So, when .NET is into this function, i get the error of
"Object ref. not set...".
This is wat exactly is happening...So can u plz suggest me sthng. ( I
hope u understood the problem)
Thx in advance.
Morten Wennevik wrote: Hi Freaky,
The exception will bubble to a() if it is not caught in b(), although your exception message indicates that you are callling ExecuteReader in
a(),
>or are you perchance doing multi-threading?
On Mon, 11 Sep 2006 07:49:58 +0200, Freaky <cu************@gmail.com> wrote:
hi all,
I get this error, when i try to execute a query in .NET. Also, this
phenomena is not seen at all times; rareyl i get this - and to my
dismay wen i get this error, .NET is actually executing statements
in
>a
different function.
eg: a()
b()
When I get this error in a(), .NET is actually in b(). I dunno how this
is possible.
foll. is the Exception message caught from the function a()
Object reference not set to an instance of an object. at
System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object&
executeResult)
at
System.Data.OleDb.OleDbCommand.ExecuteReaderInter nal(CommandBehavior
behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(Comma ndBehavior
behavior)
at <namespace>.<classname>.a()
Can anyone help me out in this.. PLZ ?
-- Happy Coding! Morten Wennevik [C# MVP]
-- Happy Coding! Morten Wennevik [C# MVP]
--
Happy Coding!
Morten Wennevik [C# MVP]
Anyway thx Morten....i've posted there...waiting for sthng. positive.
Morten Wennevik wrote:
I'm sorry, I can't really tell without seeing the code.
Alternately, try the ADONET group
microsoft.public.dotnet.framework.adonet
On Mon, 11 Sep 2006 15:41:53 +0200, Freaky <cu************@gmail.com>
wrote:
hi,
My pgm flow as like this:
parent()
{
a();
b();
.
.
}
a() b()
{ {
try{} try{ }
catch{} catch{}
} }
My pgm finishes with a(), and while executin b(), it is giving an
exception. The stackTrace() says, "obj. ref. not set..." at
System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object&
executeResult)
at
System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior
behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(Comma ndBehavior
behavior)
at <namespace>.<classname>.a()
So Stack trace points to a(), but i cudnt find any null object being
accessed in a(), and strangely i dont get this in a()-- how come?
Thanks
Freak
Morten Wennevik wrote:
Well,
private void Parent()
{
try
{
A();
}
catch(Exception ex)
{
...
}
}
private void A()
{
B();
}
private void B()
{
ExecuteReader...
}
It will look like A caused an exception, even if the actual exception
was
caused by B, however, if this is the case, your stack trace should
indicate that the exception occured in B()
I'm guessing something or other is not set to an instance of an object
in
B(). It is a bit unclear to me if this always occurs when in B() or
only
rarely.
On Mon, 11 Sep 2006 14:37:47 +0200, Freaky <cu************@gmail.com>
wrote:
Hi Morten,
so, do you mean to say that the exception is actually from the
function
b() and not from a (). I am not getting you exactly. Can u plz explain
this with depth?
PLZ...i need it ASAP... also i have been trying for finding out an
error in a(), but i am not able to get it...it is ocuuring very
rarely.
One more thing is, in a() i execute a five different queries and store
the result(one row is returned everytime) into a 1-D array (each time
i
compl. execution of one query, i close the reader, dispose the command
and then continue with the for-loop.) so, is this causing the problem
(
i dont think so!).
Also, in b() i do a FTP operation, ie. get the files stored in the
Remote Server. So, when .NET is into this function, i get the error of
"Object ref. not set...".
This is wat exactly is happening...So can u plz suggest me sthng. ( I
hope u understood the problem)
Thx in advance.
Morten Wennevik wrote:
Hi Freaky,
The exception will bubble to a() if it is not caught in b(), although
your
exception message indicates that you are callling ExecuteReader in
a(),
or
are you perchance doing multi-threading?
On Mon, 11 Sep 2006 07:49:58 +0200, Freaky <cu************@gmail.com>
wrote:
hi all,
I get this error, when i try to execute a query in .NET. Also, this
phenomena is not seen at all times; rareyl i get this - and to my
dismay wen i get this error, .NET is actually executing statements
in
a
different function.
eg: a()
b()
When I get this error in a(), .NET is actually in b(). I dunno how
this
is possible.
foll. is the Exception message caught from the function a()
Object reference not set to an instance of an object. at
System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object&
executeResult)
at
System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior
behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(Comma ndBehavior
behavior)
at <namespace>.<classname>.a()
Can anyone help me out in this.. PLZ ?
--
Happy Coding!
Morten Wennevik [C# MVP]
--
Happy Coding!
Morten Wennevik [C# MVP]
--
Happy Coding!
Morten Wennevik [C# MVP]
Hi morten,
i've sent an email to u explaining my code. Plz see that..n tell me
wats the problem.
Also, this is a rare phenomena...which doesn't occur in my system. It
is occurring only in the target system.
I am not able to simulate the same ..n hence clueless.
thx in advance
Freaky wrote:
Anyway thx Morten....i've posted there...waiting for sthng. positive.
Morten Wennevik wrote:
I'm sorry, I can't really tell without seeing the code.
Alternately, try the ADONET group
microsoft.public.dotnet.framework.adonet
On Mon, 11 Sep 2006 15:41:53 +0200, Freaky <cu************@gmail.com>
wrote:
hi,
>
My pgm flow as like this:
>
parent()
{
a();
b();
.
.
}
>
a() b()
{ {
try{} try{ }
>
catch{} catch{}
} }
>
>
My pgm finishes with a(), and while executin b(), it is giving an
exception. The stackTrace() says, "obj. ref. not set..." at
System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object&
executeResult)
at
System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior
behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(Comma ndBehavior
behavior)
at <namespace>.<classname>.a()
>
So Stack trace points to a(), but i cudnt find any null object being
accessed in a(), and strangely i dont get this in a()-- how come?
>
Thanks
Freak
>
>
Morten Wennevik wrote:
>Well,
>>
>private void Parent()
>{
> try
> {
> A();
> }
> catch(Exception ex)
> {
> ...
> }
>}
>>
>private void A()
>{
> B();
>}
>>
>private void B()
>{
> ExecuteReader...
>}
>>
>>
>It will look like A caused an exception, even if the actual exception
>was
>caused by B, however, if this is the case, your stack trace should
>indicate that the exception occured in B()
>>
>I'm guessing something or other is not set to an instance of an object
>in
>B(). It is a bit unclear to me if this always occurs when in B() or
>only
>rarely.
>>
>>
>On Mon, 11 Sep 2006 14:37:47 +0200, Freaky <cu************@gmail.com>
>wrote:
>>
Hi Morten,
>
so, do you mean to say that the exception is actually from the
>function
b() and not from a (). I am not getting you exactly. Can u plz explain
this with depth?
>
PLZ...i need it ASAP... also i have been trying for finding out an
error in a(), but i am not able to get it...it is ocuuring very
>rarely.
>
>
One more thing is, in a() i execute a five different queries and store
the result(one row is returned everytime) into a 1-D array (each time
>i
compl. execution of one query, i close the reader, dispose the command
and then continue with the for-loop.) so, is this causing the problem
>(
i dont think so!).
>
Also, in b() i do a FTP operation, ie. get the files stored in the
Remote Server. So, when .NET is into this function, i get the error of
"Object ref. not set...".
>
This is wat exactly is happening...So can u plz suggest me sthng. ( I
hope u understood the problem)
>
Thx in advance.
>
>
Morten Wennevik wrote:
>Hi Freaky,
>>
>The exception will bubble to a() if it is not caught in b(), although
>your
>exception message indicates that you are callling ExecuteReader in
>a(),
>or
>are you perchance doing multi-threading?
>>
>>
>On Mon, 11 Sep 2006 07:49:58 +0200, Freaky <cu************@gmail.com>
>wrote:
>>
hi all,
>
>
I get this error, when i try to execute a query in .NET. Also, this
phenomena is not seen at all times; rareyl i get this - and to my
dismay wen i get this error, .NET is actually executing statements
>in
>a
different function.
>
eg: a()
b()
>
When I get this error in a(), .NET is actually in b(). I dunno how
>this
is possible.
>
foll. is the Exception message caught from the function a()
>
Object reference not set to an instance of an object. at
System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object&
executeResult)
at
>
>System.Data.OleDb.OleDbCommand.ExecuteReaderInter nal(CommandBehavior
behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(Comma ndBehavior
behavior)
at <namespace>.<classname>.a()
>
Can anyone help me out in this.. PLZ ?
>
>>
>>
>>
>--
>Happy Coding!
>Morten Wennevik [C# MVP]
>
>>
>>
>>
>--
>Happy Coding!
>Morten Wennevik [C# MVP]
>
--
Happy Coding!
Morten Wennevik [C# MVP]
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Uwe Mayer |
last post by:
Hi,
sorry for the lack of source code.
Here again:
I use struct.unpack() to unpack data from a binary file and pass the
returned tuple as parameter to __init__ of a class that's supposed to...
|
by: Steven Bethard |
last post by:
In the "empty classes as c structs?" thread, we've been talking in some
detail about my proposed "generic objects" PEP. Based on a number of
suggestions, I'm thinking more and more that instead of...
|
by: Ryan Mitchley |
last post by:
Hi all
I have code for an object factory, heavily based on an article by Jim Hyslop
(although I've made minor modifications). The factory was working fine using
g++, but since switching to the...
|
by: Martin |
last post by:
I'd like to be able to get the name of an object instance from within
a call to a method of that same object. Is this at all possible?
The example below works by passing in the name of the object...
|
by: Luke Matuszewski |
last post by:
Here are some questions that i am interested about and wanted to here
an explanation/discussion:
1. (general) Is the objectness in JavaScript was supported from the
very first version of it (in...
|
by: Kevin Prichard |
last post by:
Hi all,
I've recently been following the object-oriented techiques discussed
here and have been testing them for use in a web application. There is
problem that I'd like to discuss with you...
|
by: Andrew Poulos |
last post by:
With the following code I can't understand why this.num keeps
incrementing each time I create a new instance of Foo. For each instance
I'm expecting this.num to alert as 1 but keeps incrementing.
...
|
by: Shailen Sukul |
last post by:
Observed a weird behaviour with object references.
See code listing below:
using System;
using System.Collections.Generic;
using System.Text;
namespace PointerExceptionTest
{
/*
|
by: Ralph |
last post by:
Hi
I don't understand why it's not working:
function schedule(imTop){
this.tdImagesTop = imTop;
}
schedule.prototype.selectEl = function() {
alert(this.tdImagesTop);
|
by: JH |
last post by:
Hi
I found that a type/class are both a subclass and a instance of base
type "object".
It conflicts to my understanding that:
1.) a type/class object is created from class statement
2.) a...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |