A scary situation:
Scenario: Vs2005 .Net 2.0 , debuging Web Services without restart IIS,
refreshed one dll into GAC, The web service failed on a simple function in
a
singleton instance. In this case it failed on
LocalNode.Instance.isLocalNode(host);
???then started to debug by attaching to w3p. oops, the instance was
another class which was a common class( not singleton). press F11, it
still
went inside a function like
f( string p1,string p2,string p3)
the p1 was "127.0.0.1" which is the input parameter. it kept running to
the
end and gave a false.
/// this class is in the dll in GAC
namespace ....
{
public class LocalNode:Template.Singleton<LocalNode>
{
private string hostname=null;
public string HostName
{
get{
if ( hostname==null)
hostname=System.Net.Dns.GetHostName();
return hostname;
}
}
public bool isLocalhost(string host)
{ // the program didn't come here
return true;
}
}
Re-compile everything, restart everthing, refresh the dll in GAC. Works
fine now.
:( ???!!!
"Neil" wrote:
> Sounds like you are running out of memory, have you got a new Host for
the
> Send, Receive and Processing (Orchestration) for that Application ?.
Monitor
> the BTS using Perfmon (Processes, Working Set) to see if you are
bleeding
> memory.
>
> Remove all of the custom components and then add them back in one at a
time.
>
> - Don’t try to tune the Host UNTIL After you have done this!
>
> When you tune it, drop the number of messages being processed by the
send
> ****ts right down (1/2) then retry, if that fixes it then the messages
are to
> big (It loads based on Processor, Core etc). There is a good but
complex
> article on the MSDN about this.
>
> Don’t try and change to much at once.
>
>
>
> N
>
>
> "Q1andQ2" wrote:
>
> > if '0x00' comes without cra****ng, it throws the event of " Attempted
to read
> > or write
> > protected memory. This is often an indication that other memory is
corrupt".
> > After a while, the machine crashed.
> >
> > "Eric Stott" wrote:
> >
> > > Lets leave the swearing to other forums.
> > >
> > > Do you experience the same problem with the memory when you use the
pipeline
> > > testing components in the SDK?
> > >
> > > Eric
> > > http://blog.biztalk-info.com
> > >
> > > "Q1andQ2" <Q1andQ2@[EMAIL PROTECTED]
> wrote in message
> > > news:609E04F9-B901-4B71-988E-EA8BFB8885B3@[EMAIL PROTECTED]
> > > > There was a failure executing the receive pipeline: ....Source:
"Flat file
> > > > disassembler" Receive ****t:... URI: ....Reason: Attempted to read
or write
> > > > protected memory. This is often an indication that other memory is
> > > > corrupt.
> > > >
> > > > What the hell is going on?
> > > >
> > > >
> > >
> > >
> > >


|