Article View: borland.public.cppbuilder.internet.web
Article #291Re: TCPPWebBrowser causing an AV
From: Eduardo Jauch
Date: Wed, 21 Feb 2007 04:50
Date: Wed, 21 Feb 2007 04:50
34 lines
2156 bytes
2156 bytes
Tom escreveu:
> Thanks Eduardo,
>
> However, as I stated (though I didn't state why), delete IStr fails. It
> actually causes another access violation, which is why I went to releasing
> and nulling it.
>
I tested the code with the suggestion of Remy.
while(this->CppWebBrowser1->ReadyState != 4)
Application->ProcessMessages();
Got an error because ambiguity with READYSTATE_COMPLETE, so i used
insted the number 4 (value on the help).
I try to put delete IStr. Fails like you said.
> Also, the this-> point is there because the code was copied out of another
> project where it is required.
>
Unfortunate the "this" is the problem. Without the this->, the error
when you close the application without play the video don't happen. :)
I don't have any idea WHY... ^-
But it's very interesting...
Same for why "delete IStr" don't work...
But I know that the delete don't work because this line:
pPersistStreamInit->Load(*IStr);
Without this, the delete works properly... :) The program no, of corse ;)
Technical Details
Message-ID:
<45dbcf7c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45d852e5$1@newsgroups.borland.com> <45db43cc@newsgroups.borland.com> <45db63e3$1@newsgroups.borland.com> <45db7380$1@newsgroups.borland.com> <45dba344$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,2dcae0388f1713b X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 21 Feb 2007 02:50:42 -0200 From: Eduardo Jauch <eduardo.jauch@gmail.com> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.web Subject: Re: TCPPWebBrowser causing an AV References: <45d852e5$1@newsgroups.borland.com> <45db43cc@newsgroups.borland.com> <45db63e3$1@newsgroups.borland.com> <45db7380$1@newsgroups.borland.com> <45dba344$1@newsgroups.borland.com> In-Reply-To: <45dba344$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 201.89.78.51 Message-ID: <45dbcf7c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172033404 201.89.78.51 (20 Feb 2007 20:50:04 -0800) Lines: 34 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail