🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13229

Re: BHO question

#13229
From: Remy Lebeau (TeamB)
Date: Tue, 21 Oct 2003 02:03
21 lines
2364 bytes
"Martin C" <martinc@aol.com> wrote in message
news:3f9487b0@newsgroups.borland.com...

> BTW there is really a strange issue happening with IE and my bho,
> if I selected any link (by mouse right click) and pressed 'open in new
> window', IE doesn't respond at all, as if I never pressed 'open in
> new window' command. do you happen to have any idea why this
> might be happening...

Based on your preview code, my guess would be that your test for (i != 1) is
causing Quit/Stop() to be called for every request for a new window.  You
did not initialize 'i' before using it, and you did not test get_ToolBar()
to make sure it succeeded before using the returned value.  Since 'i' is
uninitialized, it will contain a random value from memory, which will
probably rarely ever be set to 1.  If get_ToolBar() fails, 'i' will most
likely remain unchanged, and thus your test for (i != 1) will always
succeed.


Gambit
Technical Details
Message-ID: <3f94933e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f84957c@newsgroups.borland.com> <3f84a0b8@newsgroups.borland.com> <3f88b9db@newsgroups.borland.com> <3f88be72$1@newsgroups.borland.com> <3f897b9a@newsgroups.borland.com> <3f89c56f$1@newsgroups.borland.com> <3f8af683@newsgroups.borland.com> <3f8af95a$3@newsgroups.borland.com> <3f8affad@newsgroups.borland.com> <3f8b009f$3@newsgroups.borland.com> <3f8ed9f0$1@newsgroups.borland.com> <3f8edeb3$1@newsgroups.borland.com> <3f93f0e3@newsgroups.borland.com> <3f941ba4$1@newsgroups.borland.com> <3f9472ab@newsgroups.borland.com> <3f94782e$1@newsgroups.borland.com> <3f9487b0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,15b7dd6889830f4f
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-20 19:09:19 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f84957c@newsgroups.borland.com> <3f84a0b8@newsgroups.borland.com> <3f88b9db@newsgroups.borland.com> <3f88be72$1@newsgroups.borland.com> <3f897b9a@newsgroups.borland.com> <3f89c56f$1@newsgroups.borland.com> <3f8af683@newsgroups.borland.com> <3f8af95a$3@newsgroups.borland.com> <3f8affad@newsgroups.borland.com> <3f8b009f$3@newsgroups.borland.com> <3f8ed9f0$1@newsgroups.borland.com> <3f8edeb3$1@newsgroups.borland.com> <3f93f0e3@newsgroups.borland.com> <3f941ba4$1@newsgroups.borland.com> <3f9472ab@newsgroups.borland.com> <3f94782e$1@newsgroups.borland.com> <3f9487b0@newsgroups.borland.com>
Subject: Re: BHO question
Date: Mon, 20 Oct 2003 19:03:00 -0700
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.137.75
Message-ID: <3f94933e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066701630 67.22.137.75 (20 Oct 2003 19:00:30 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail