PC Review


Reply
Thread Tools Rate Thread

axWebBrowser and C# (Dispose)

 
 
Logician
Guest
Posts: n/a
 
      10th Apr 2009
I get an issue with disposing of axWebBrowser. I googled this topic
and found a lot of people have the issue but no one really has a
resolution from what I saw.

The basic issue is that the pdf document is retained and after a
certain number, seems to be about 100, the systems refuses to open
more documents, and also it disallows updates on the pdf document.

I have tried a few versions of dispose but nothing really works.

Does anyone have any more information?


public class pdfDocument : System.Windows.Forms.Form
{
private System.Windows.Forms.Label lblError;
private System.Windows.Forms.Panel panel1;
public AxSHDocVw.AxWebBrowser axWebBrowser1;

pdfDocument newScanName1 = new pdfDocument();
string thisImageName=getPDFDir()+"\\"+thisScanName;
newScanName1.axWebBrowser1.Navigate(thisImageName);


newScanName1.Visible=true;
 
Reply With Quote
 
 
 
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      10th Apr 2009
Logican,

Do you use framework 1.0 or 1.1 otherwise you can use the newer Net
webbrowser (although that is too not much more than a wrapper around
shdocvw)

Cor

"Logician" <(E-Mail Removed)> wrote in message
news:6a24e98d-d3c3-421d-a58e-(E-Mail Removed)...
>I get an issue with disposing of axWebBrowser. I googled this topic
> and found a lot of people have the issue but no one really has a
> resolution from what I saw.
>
> The basic issue is that the pdf document is retained and after a
> certain number, seems to be about 100, the systems refuses to open
> more documents, and also it disallows updates on the pdf document.
>
> I have tried a few versions of dispose but nothing really works.
>
> Does anyone have any more information?
>
>
> public class pdfDocument : System.Windows.Forms.Form
> {
> private System.Windows.Forms.Label lblError;
> private System.Windows.Forms.Panel panel1;
> public AxSHDocVw.AxWebBrowser axWebBrowser1;
>
> pdfDocument newScanName1 = new pdfDocument();
> string thisImageName=getPDFDir()+"\\"+thisScanName;
> newScanName1.axWebBrowser1.Navigate(thisImageName);
>
>
> newScanName1.Visible=true;


 
Reply With Quote
 
Logician
Guest
Posts: n/a
 
      10th Apr 2009
On Apr 10, 11:06*am, "Cor Ligthert[MVP]" <Notmyfirstn...@planet.nl>
wrote:
> Logican,
>
> Do you use framework 1.0 or 1.1 otherwise you can use the newer Net
> webbrowser (although that is too not much more than a wrapper around
> shdocvw)
>


I am using VS 2005 Win Forms. What is the newbrowser and that still
suffer the same issues?

> Cor
>
> "Logician" <sa...@logicians.com> wrote in message
>
> news:6a24e98d-d3c3-421d-a58e-(E-Mail Removed)...
>
>
>
> >I get an issue with disposing of axWebBrowser. I googled this topic
> > and found a lot of people have the issue but no one really has a
> > resolution from what I saw.

>
> > The basic issue is that the pdf document is retained and after a
> > certain number, seems to be about 100, the systems refuses to open
> > more documents, and also it disallows updates on the pdf document.

>
> > I have tried a few versions of dispose but nothing really works.

>
> > Does anyone have any more information?

>
> > public class pdfDocument : System.Windows.Forms.Form
> > {
> > private System.Windows.Forms.Label lblError;
> > private System.Windows.Forms.Panel panel1;
> > public AxSHDocVw.AxWebBrowser axWebBrowser1;

>
> > * * * *pdfDocument newScanName1 = new pdfDocument();
> > string thisImageName=getPDFDir()+"\\"+thisScanName;
> > newScanName1.axWebBrowser1.Navigate(thisImageName);

>
> > newScanName1.Visible=true;- Hide quoted text -

>
> - Show quoted text -


 
Reply With Quote
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      10th Apr 2009
Hi,

What is this in your code?

newScanName1

Cor



"Logician" <(E-Mail Removed)> wrote in message
news:227c1513-4121-4c82-82e1-(E-Mail Removed)...
On Apr 10, 11:06 am, "Cor Ligthert[MVP]" <Notmyfirstn...@planet.nl>
wrote:
> Logican,
>
> Do you use framework 1.0 or 1.1 otherwise you can use the newer Net
> webbrowser (although that is too not much more than a wrapper around
> shdocvw)
>


I am using VS 2005 Win Forms. What is the newbrowser and that still
suffer the same issues?

> Cor
>
> "Logician" <sa...@logicians.com> wrote in message
>
> news:6a24e98d-d3c3-421d-a58e-(E-Mail Removed)...
>
>
>
> >I get an issue with disposing of axWebBrowser. I googled this topic
> > and found a lot of people have the issue but no one really has a
> > resolution from what I saw.

>
> > The basic issue is that the pdf document is retained and after a
> > certain number, seems to be about 100, the systems refuses to open
> > more documents, and also it disallows updates on the pdf document.

>
> > I have tried a few versions of dispose but nothing really works.

>
> > Does anyone have any more information?

>
> > public class pdfDocument : System.Windows.Forms.Form
> > {
> > private System.Windows.Forms.Label lblError;
> > private System.Windows.Forms.Panel panel1;
> > public AxSHDocVw.AxWebBrowser axWebBrowser1;

>
> > pdfDocument newScanName1 = new pdfDocument();
> > string thisImageName=getPDFDir()+"\\"+thisScanName;
> > newScanName1.axWebBrowser1.Navigate(thisImageName);

>
> > newScanName1.Visible=true;- Hide quoted text -

>
> - Show quoted text -


 
Reply With Quote
 
Logician
Guest
Posts: n/a
 
      10th Apr 2009
On Apr 10, 12:39*pm, "Cor Ligthert[MVP]" <Notmyfirstn...@planet.nl>
wrote:
> Hi,
>
> What is this in your code?
>
> newScanName1


The instance of pdfDocument, it is in another class (part of the UI).
The name should be newPdfDoc but the code was copy pasted from an
imagescan class.
>
> Cor
>
> "Logician" <sa...@logicians.com> wrote in message
>
> news:227c1513-4121-4c82-82e1-(E-Mail Removed)...
> On Apr 10, 11:06 am, "Cor Ligthert[MVP]" <Notmyfirstn...@planet.nl>
> wrote:
>
> > Logican,

>
> > Do you use framework 1.0 or 1.1 otherwise you can use the newer Net
> > webbrowser (although that is too not much more than a wrapper around
> > shdocvw)

>
> I am using VS 2005 Win Forms. What is the newbrowser and that still
> suffer the same issues?
>
>
>
> > Cor

>
> > "Logician" <sa...@logicians.com> wrote in message

>
> >news:6a24e98d-d3c3-421d-a58e-(E-Mail Removed)...

>
> > >I get an issue with disposing of axWebBrowser. I googled this topic
> > > and found a lot of people have the issue but no one really has a
> > > resolution from what I saw.

>
> > > The basic issue is that the pdf document is retained and after a
> > > certain number, seems to be about 100, the systems refuses to open
> > > more documents, and also it disallows updates on the pdf document.

>
> > > I have tried a few versions of dispose but nothing really works.

>
> > > Does anyone have any more information?

>
> > > public class pdfDocument : System.Windows.Forms.Form
> > > {
> > > private System.Windows.Forms.Label lblError;
> > > private System.Windows.Forms.Panel panel1;
> > > public AxSHDocVw.AxWebBrowser axWebBrowser1;

>
> > > pdfDocument newScanName1 = new pdfDocument();
> > > string thisImageName=getPDFDir()+"\\"+thisScanName;
> > > newScanName1.axWebBrowser1.Navigate(thisImageName);

>
> > > newScanName1.Visible=true;- Hide quoted text -

>
> > - Show quoted text -- Hide quoted text -

>
> - Show quoted text -


 
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
Does DataGridView.Dispose Call DataGridViewRow.Dispose? eBob.com Microsoft VB .NET 13 31st Jul 2009 02:08 PM
Dispose, Dispose(true), Finalize, IDisposable tascien@gmail.com Microsoft Dot NET 1 27th Jul 2007 01:01 AM
Form.Dispose does not invoke InputPanel.Dispose tomj@softhome.net Microsoft Dot NET Compact Framework 3 24th Jan 2006 03:28 PM
the difference betweenSqlConnection.IDisposable.Dispose() andSqlConnection.Dispose(). tangyong Microsoft Dot NET Framework 1 20th Jan 2006 04:53 AM
AxWebBrowser create / dispose problem. MARTIN LANNY Microsoft VB .NET 3 4th Mar 2005 03:51 PM


Features
 

Advertising
 

Newsgroups
 


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