Hi All & Thomas (Devine),

I thought I would resurrect this topic since I spent at least 8 hours
trying to track down a bug related to it, and I did a search on the
Internet and found nothing about it, and frankly, I am surprised that
no one else has mentioned the problem.

I decided to use PROTINSTALL from (http://www.ndis.com/papers/
ndisinstall/programinstall.htm) to install my NDIS protocol driver.
Instead of building the application as is, I decided to integrate the
source code into my own application. Thereafter there were many
crashes during the InetCfg->Apply() method, which baffled me, because
I checked each line of code carefully to make sure I was not doing
anything wrong. I read perhaps 30% of Setup API documentation until I
realized that that was unnecessary, that the problem must be with my
code, or global variable in Setup DLL being trampled, etc. I used
BindView, and it did not crash. I compiled a virgin PROTINSTALL and
got a few warnings during compilation, but it built, then it crashed
too in InetCfg->Apply(). I labored at this until I found...

DAMNIT...SETUPAPI.DLL generates spurious exceptions that are caught by
the GUI message pump in BindView but otherwise not. So PROTINSTALL,
which does not invoke InetCfg->Apply() through message pump chain will
crash, as will my application, but not BindView.

Thomas, were you aware of this? Note that Apply() is not the only
SETUPAPI.DLL that generates exceptions. I counted at least 8 being
generated during debug session.

I was testing on Windows XP with all service packs to date.

-Le Chaud Lapin-

Re: PROTINSTALL - Does It Crash Or Not by Thomas

Thomas
Fri Apr 20 22:47:09 CDT 2007


"Le Chaud Lapin" <jaibuduvin@gmail.com> wrote in message
news:1176655925.946880.14680@d57g2000hsg.googlegroups.com...
> Hi All & Thomas (Devine),
>
> I thought I would resurrect this topic since I spent at least 8 hours
> trying to track down a bug related to it, and I did a search on the
> Internet and found nothing about it, and frankly, I am surprised that
> no one else has mentioned the problem.
>
> I decided to use PROTINSTALL from (http://www.ndis.com/papers/
> ndisinstall/programinstall.htm) to install my NDIS protocol driver.
> Instead of building the application as is, I decided to integrate the
> source code into my own application. Thereafter there were many
> crashes during the InetCfg->Apply() method, which baffled me, because
> I checked each line of code carefully to make sure I was not doing
> anything wrong. I read perhaps 30% of Setup API documentation until I
> realized that that was unnecessary, that the problem must be with my
> code, or global variable in Setup DLL being trampled, etc. I used
> BindView, and it did not crash. I compiled a virgin PROTINSTALL and
> got a few warnings during compilation, but it built, then it crashed
> too in InetCfg->Apply(). I labored at this until I found...
>
> DAMNIT...SETUPAPI.DLL generates spurious exceptions that are caught by
> the GUI message pump in BindView but otherwise not. So PROTINSTALL,
> which does not invoke InetCfg->Apply() through message pump chain will
> crash, as will my application, but not BindView.
>
> Thomas, were you aware of this? Note that Apply() is not the only
> SETUPAPI.DLL that generates exceptions. I counted at least 8 being
> generated during debug session.
Thanks for the heads-up. I don't have any idea why ProtInstall seems to work
for me (and apparently for some others...) without difficulty.

However, I will definitely take a closer look.

Thomas F. Divine

>
> I was testing on Windows XP with all service packs to date.
>
> -Le Chaud Lapin-
>


Re: PROTINSTALL - Does It Crash Or Not by Le

Le
Fri Apr 20 23:43:20 CDT 2007

On Apr 20, 10:47 pm, "Thomas F. Divine" <tdivine@NOpcausaSPAM> wrote:
> Thanks for the heads-up. I don't have any idea why ProtInstall seems to work
> for me (and apparently for some others...) without difficulty.
>
> However, I will definitely take a closer look.

Some notes to assist with determining if there is a problem:

I am running Windows XP Media Center SP2 on my laptop. SETUPAPI.DLL is
983,552 bytes.

Thanks again,

-Le Chaud Lapin-