PC Review


Reply
Thread Tools Rate Thread

axWebBrowser stops working

 
 
Marius Horak
Guest
Posts: n/a
 
      21st Sep 2005
This is the code to navigate

object flags = (object)0;
object targetFrameName = (object)"";
object postData = (object)"";
object headers = (object)"";

string url = "http://000.000.000.000/RemoteAPI.dll/Get?ID=100";

webControl.Navigate(url, ref flags, ref targetFrameName, ref postData,
ref headers);
There is NavigateComplete2 method assigned to NavigateComplete2 event
that makes the webControl visible.

The RemoteAPI.dll should find a PDF file and axWebBrowser will open it.
Works fine. But when a PDF file does not exists the RemoteAPI.dll
returns text - "Error in Get. The system cannot find the file
specified". This is the full text as taken from View-Source. No HTML
tags. After that the next attempt to navigate to an existing PDF files
does not work. The application hangs and it never gets to
NavigateComplete2. When NavigateComplete2 event is removed all works
fine (but now I have to keep webControl visible all the time and cannot
handle the response).

I think something goes wrong due to the way I define/pass parameters to
Navigate.
I recreated the same process in Delphi 5 and there is no problem at all.


MH

 
Reply With Quote
 
 
 
 
Marius Horak
Guest
Posts: n/a
 
      21st Sep 2005
I have workaround.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Right click stops working/New tabs stop working/Menu bar disappear Robert Aldwinckle Windows Vista Performance 8 20th Nov 2007 09:03 PM
IE 7.0 stops responding, stops working,or restarts unexpectedly , =?Utf-8?B?RmVybmFuZG8=?= Windows XP Internet Explorer 1 13th Nov 2007 09:32 PM
AxWebBrowser refresh/reload not working! Martin Ho Microsoft VB .NET 7 14th Apr 2006 04:49 PM
AxWebBrowser refresh/reload not working! Martin Ho Microsoft VB .NET 0 1st Mar 2005 07:46 PM
AxWebBrowser & MDI form not working John Microsoft Dot NET Framework Forms 0 8th Dec 2003 10:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:57 AM.