Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Fri, 11 Jul 2008 00:46:31 -0700 (PDT),    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


IDownloadManager crash with text file   
My app implements IDownloadManager, which seems to work fine for most
files. However, when I handle a url that downloads a text file
attachment, my app will crash with an exception thrown from
ieframe.dll.  This seems to happen only if I return S_OK from
IDownloadManager::Download().  If I return E_FAIL, I get the default
download dialog from IE and everything works.

Has anyone seen this or know of a fix? Basically I have my own
download dialog that I want to handle this download, so I am returning
S_OK to "fake" IE into thinking the download has be taken care of.

Thanks!
date: Fri, 11 Jul 2008 00:46:31 -0700 (PDT)   author:   Dave Brown

Re: IDownloadManager crash with text file   
Hi,

I have come across this issue with file attachments, but without
seeing your implementation of the ::Download method, I can only tell
you that the crash in my case was related to
RegisterBindStatusCallback call which was returnning E_FAIL while I
was returnning S_OK from ::Download method.

Regards,

MH

On Jul 10, 11:46 pm, Dave Brown  wrote:
> My app implements IDownloadManager, which seems to work fine for most
> files. However, when I handle a url that downloads a text file
> attachment, my app will crash with an exception thrown from
> ieframe.dll.  This seems to happen only if I return S_OK from
> IDownloadManager::Download().  If I return E_FAIL, I get the default
> download dialog from IE and everything works.
>
> Has anyone seen this or know of a fix? Basically I have my own
> download dialog that I want to handle this download, so I am returning
> S_OK to "fake" IE into thinking the download has be taken care of.
>
> Thanks!
date: Mon, 14 Jul 2008 04:39:56 -0700 (PDT)   author:   mh

Re: IDownloadManager crash with text file   
On Jul 14, 4:39 am, mh  wrote:
> Hi,
>
> I have come across this issue with file attachments, but without
> seeing your implementation of the ::Download method, I can only tell
> you that the crash in my case was related to
> RegisterBindStatusCallback call which was returnning E_FAIL while I
> was returnning S_OK from ::Download method.
>
> Regards,
>
> MH
>
> On Jul 10, 11:46 pm, Dave Brown  wrote:
>
>
>
> > My app implements IDownloadManager, which seems to work fine for most
> > files. However, when I handle a url that downloads a text file
> > attachment, my app will crash with an exception thrown from
> > ieframe.dll.  This seems to happen only if I return S_OK from
> > IDownloadManager::Download().  If I return E_FAIL, I get the default
> > download dialog from IE and everything works.
>
> > Has anyone seen this or know of a fix? Basically I have my own
> > download dialog that I want to handle this download, so I am returning
> > S_OK to "fake" IE into thinking the download has be taken care of.
>
> > Thanks!- Hide quoted text -
>
> - Show quoted text -

Yes I think this is my issue as well. Did you find a resolution for
this problem?
date: Mon, 14 Jul 2008 23:25:31 -0700 (PDT)   author:   Dave Brown

Re: IDownloadManager crash with text file   
Hi,

You can find the solution by downloading a freeware package from
http://code.google.com/p/csexwb2/downloads/list,
csExWBv2.0_Includes_ComUtilities.zip. Within the package, locate
ComUtilities solution which is a COM component. Open up UtilMan.cpp,
the methods that you need to look at are CUtilMan class ::Download,
and WBBSCBFileDL class (IBindStatusCallback
implementation) ::OnStartBinding and ::OnStopBinding methods.

Regards,

MH

On Jul 14, 10:25 pm, Dave Brown  wrote:
> On Jul 14, 4:39 am, mh  wrote:
>
>
>
>
>
> > Hi,
>
> > I have come across this issue with file attachments, but without
> > seeing your implementation of the ::Download method, I can only tell
> > you that the crash in my case was related to
> > RegisterBindStatusCallback call which was returnning E_FAIL while I
> > was returnning S_OK from ::Download method.
>
> > Regards,
>
> > MH
>
> > On Jul 10, 11:46 pm, Dave Brown  wrote:
>
> > > My app implements IDownloadManager, which seems to work fine for most
> > > files. However, when I handle a url that downloads a text file
> > > attachment, my app will crash with an exception thrown from
> > > ieframe.dll.  This seems to happen only if I return S_OK from
> > > IDownloadManager::Download().  If I return E_FAIL, I get the default
> > > download dialog from IE and everything works.
>
> > > Has anyone seen this or know of a fix? Basically I have my own
> > > download dialog that I want to handle this download, so I am returning
> > > S_OK to "fake" IE into thinking the download has be taken care of.
>
> > > Thanks!- Hide quoted text -
>
> > - Show quoted text -
>
> Yes I think this is my issue as well. Did you find a resolution for
> this problem?- Hide quoted text -
>
> - Show quoted text -
date: Tue, 15 Jul 2008 06:00:12 -0700 (PDT)   author:   mh

Google
 
Web ureader.com


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