|
|
|
date: Fri, 5 Oct 2007 15:13:00 -0700,
group: microsoft.public.platformsdk.internet.server.isapi-dev
back
Re: isapi extension dlls and smartheap
On Oct 5, 3:13 pm, mldave wrote:
> Hi,
>
> Has anyone tried to write an isapi extension dll that has Smartheap (from
> MicroQuill) in its dependency chain?
>
> I'm using Visual Studio 2005 and, following the help documentation, built
> the sample web service using ATL server and unmanaged C++ featuring
> temperature conversion. It runs fine in IIS.
>
> However, once my webservice dll starts depending on other projects that are
> dynamically linking to smartheap, not only does the webservice no longer work
> but all of IIS seems to hang.
>
> Has anyone encountered this problem before? It appears smartheap is doing
> some dll patching on any process that exports malloc and new. Could this be
> an issue? Does anyone know of any workarounds?
>
> Thanks.
If you suspect it is Smartheap, then you should obtain support from
its manufacturer.
I went searching for Smartheap and find a variety of strange crashes/
complaints with it. It seems like it's doing some software voodoo
which is version dependent, which means you're only going to find help
from people familiar with Smartheap.
I don't see this newsgroup as dedicated to Smartheap, so I'm not
certain how we can help.
If you think about it another way -- if Smartheap's product support is
unreasonable, unreliable, do you want to depend on it?
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
date: Sat, 06 Oct 2007 15:12:52 -0700
author: David Wang
Re: isapi extension dlls and smartheap
On Oct 9, 6:44 am, mldave wrote:
> Alright, then let me expand the question. Since I am new to developing web
> services for IIS, are there any idiosyncrasies that I should be aware of? I
> built the example from the documentation in a standalone project combining
> both the webservice dll and the isapi dll and it works. Now I want to
> integrate that project into a larger solution filled with my code...
>
> 1.) Are there any issues with my webservice/isapi dll having complex
> dependency chains?
>
> 2.) Could I be doing anything abnormal in my code that could affect the
> webservice/isapi dll at runtime?
>
> Thanks.
1. No, WebServices and ISAPI DLLs are just normal, standard Windows
DLLs. Complex dependency chains are not a problem for the OS to
resolve, but they can be a issue for you to maintain
2. Possibly. One common way for DLLs to cause "hangs" is to
inadvertently trigger COM+ while under the NT Loader Lock. There may
be others. Depends on how you initialize/use library code.
What you are describing does not happen with WebService/ISAPI DLLs
normally. They are happening when you include SmartHeap. It seems the
problem is either with SmartHeap or how you are using SmartHeap (maybe
even how you are linking it). Since everything seems pretty related to
SmartHeap, I feel you should get better results by consulting
SmartHeap's support personel.
Personally, I would just attach a debugger onto the hanging process
and see what is hanging and go from there. Once we see what is
hanging, we can usually determine the responsible party and directly
get to a resolution. No need to go through induction with general
hypothesis about idiosyncrasies, dependencies, or abnormalities - even
though they can be fun and enriching.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.wang
//
date: Tue, 09 Oct 2007 12:38:49 -0700
author: David Wang
|
|