|
Home > Archive > BizTalk Server General > March 2005 > BTS 2002 - Preprocessor: Object reference not set to an instance..
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
BTS 2002 - Preprocessor: Object reference not set to an instance..
|
|
|
| Hi - I am hoping someone out there can help me solve an issue I have been
having with a BTS 2002 File Receive Preprocessor object. The object is
written in C#/.NET and is exposed/registered in COM. The preprocessor takes
a flat file as import, breaks it into several segments, translates each
segment into XML documents, builds an internal XML document that lists a
reference to each segment, and returns that document as output. That
document is then passed into BTS2002 for processing.
As long as I send one file into the preprocessor at a time, the function
works great. However, if I drop 2 or more files at once into the recieve
folder, the preprocessor will process the files and break them up as
designed, but will only return output successfully for one of the files. All
other preprocessor threads will fail with an "Object reference not set to an
instance of an object" error.
I am sure I have made a simple coding mistake in my object, but can't seems
to figure out what it is. I've been banging my head on the wall on this one
for several weeks now. Has anyone experienced this issue before?
Any help you can provide will be much appreciated.
-MGP
| |
| Matt Pothier 2005-03-23, 6:01 pm |
| Deepak - THANK YOU. I think you pointed me in the right direction. I did
have references to some static variables. I modified the code so that I
created a structure and then declared a new variable of the structure type.
I pass a reference to that structure in my methods calls, rather than
referring to the static variables. So far, it seems to have cleared things
up for me.
-MGP
"Deepak" <anonymous@discussions.microsoft.com> wrote in message
news:010001c52f18$93105990$a401280a@phx.gbl...[vbcol=seagreen]
> Hi,
>
> It might be hard to figure out the issue without seeing
> your code, you might want to post your code.
>
> However just a wild guess, Are you using any Static
> Variable objects at the class level?
>
> Deepak
> http://deepakl.blogspot.com
>
>
> issue I have been
> object. The object is
> The preprocessor takes
> translates each
> document that lists a
> output. That
> time, the function
> into the recieve
> break them up as
> one of the files. All
> reference not set to an
> object, but can't seems
> the wall on this one
> issue before?
|
|
|
|
|