Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C++ DLL crashes when called from web service on WS2003

Status
Not open for further replies.

nobody102

Programmer
Jan 18, 2010
2
US
We have a "legacy" COM DLL (written in VC++) that is invoked from a Web service written in C#.

When run on a Windows 2003 Server machine under w3wp.exe, invoking a specific method results in an exception. I get a Stack Overflow error when I attach to w3wp.exe and debug the call. The strange this is, if I take the exact same C# code and place it in a console app, the invocation works fine. Similarly, if I execute the same web service+COM DLL on a windows XP box with aspnet_wp.exe, it works fine also. What would cause this difference in behavior under w3wp.exe? FYI, I tried to debug the COM DLL by running "wpw3.exe -debug", but the process terminates right after strart-up.



Thanks,

Leor
 
Possibly the login rights of the com service?
--Jim
 
Actually, I found the problem on Google. It is a stack overflow. In WS2003, they changed the default stack size for an thread in w3wp.exe from 1MB to 256K.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top