Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Fri, 5 Oct 2007 15:13:00 -0700,    group: microsoft.public.platformsdk.internet.server.isapi-dev        back       


isapi extension dlls and smartheap   
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.
date: Fri, 5 Oct 2007 15:13:00 -0700   author:   mldave

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   
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.
date: Tue, 9 Oct 2007 06:44:00 -0700   author:   mldave

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

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us