Click to See Complete Forum and Search --> : Wishlist Item i'd kill for :)


Vlad Ivanov
03-13-2000, 09:27 AM
How is that for a wish list item:

PLEASE MAKE ALL OLE/COM ERRORS RETURN ProgId (ClassId, GUID whatever i don't
care) OF THE OBJECT THAT FAILED!!!! DAMNIT!

Heheh :) I start to shake when i am testing my installs and i get one of
those "Activex component cannot create object". Which one? Where? What line?!
I mean how difficult it is for a freaking COM layer to return the **** ProgId!!!!
If it is not in VB7 i'll probably move on to some other way of earning a
living. Gardening... Flower arrangements or something...

I am perfectly aware of importance of error handlers blah blah.. The fact
is that almost every VB is built from all kinds of COM components and this
feature would be a natural one would expect to be there!!!

You can see that i am all worked up now :) Ok i'll stop.

Darin Darin
03-13-2000, 09:40 AM
"Vlad Ivanov" <vivanov@polarisconsulting.com> wrote:
>
>How is that for a wish list item:
>
>PLEASE MAKE ALL OLE/COM ERRORS RETURN ProgId (ClassId, GUID whatever i don't
>care) OF THE OBJECT THAT FAILED!!!! DAMNIT!


I agree 100% but you can actually roll your own right now. Create a BAS module,
put a function in it called CreateObject() that duplicates the syntax of
CreateObject exactly, write code that just performs a create object call,
and error trap it. Your createobject will override vb's version. Be sure
to use VBA.CreateObject in your function instead of just CreateObject (or
you'll end up in a tight recursion!)

Then raise an error that includes the Passed in PROGID in the err.description.

I saw this in a tech tip, I think. **** handy and it almost takes care of
the whole problem (it won't handle objects created with the NEW operator,
though I suppose you could wrap those requests as well, but with more work)

Keith Primeaux
03-14-2000, 09:20 AM
Vlad,

I'm not sure if this is exactly what you're looking for or not, but check
out: http://www.addisonsw.com/ . I've never used their software, but I
stumbled across their website many months ago when I was searching for
something unrelated. The Reveal software may be of help to you while you
wait for your wish list item.

Best of luck,
KP



Vlad Ivanov <vivanov@polarisconsulting.com> wrote in message
news:38ccecdc$1@news.devx.com...

> How is that for a wish list item:
>
> PLEASE MAKE ALL OLE/COM ERRORS RETURN ProgId (ClassId, GUID whatever i
don't
> care) OF THE OBJECT THAT FAILED!!!! DAMNIT!

Steve Cochran
03-14-2000, 09:33 AM
My peeve is the one that says "An unexpected error has occured." That's
all.

<G>

steve

"Vlad Ivanov" <vivanov@polarisconsulting.com> wrote in message
news:38ccecdc$1@news.devx.com...
>
> How is that for a wish list item:
>
> PLEASE MAKE ALL OLE/COM ERRORS RETURN ProgId (ClassId, GUID whatever i
don't
> care) OF THE OBJECT THAT FAILED!!!! DAMNIT!
>
> Heheh :) I start to shake when i am testing my installs and i get one of
> those "Activex component cannot create object". Which one? Where? What
line?!
> I mean how difficult it is for a freaking COM layer to return the ****
ProgId!!!!
> If it is not in VB7 i'll probably move on to some other way of earning a
> living. Gardening... Flower arrangements or something...
>
> I am perfectly aware of importance of error handlers blah blah.. The fact
> is that almost every VB is built from all kinds of COM components and this
> feature would be a natural one would expect to be there!!!
>
> You can see that i am all worked up now :) Ok i'll stop.

Vlad Ivanov
03-14-2000, 11:34 AM
Thank you Keith!!! I am looking at it right now and it looks VERY promising!
It's always the tool you need is the one you never heard of! Even though
believe me i was looking :)

"Keith Primeaux" <keithp@automatedfilingsystems.com> wrote:
>Vlad,
>
>I'm not sure if this is exactly what you're looking for or not, but check
>out: http://www.addisonsw.com/ . I've never used their software, but I
>stumbled across their website many months ago when I was searching for
>something unrelated. The Reveal software may be of help to you while you
>wait for your wish list item.
>
>Best of luck,
>KP
>
>
>
>Vlad Ivanov <vivanov@polarisconsulting.com> wrote in message
>news:38ccecdc$1@news.devx.com...
>
>> How is that for a wish list item:
>>
>> PLEASE MAKE ALL OLE/COM ERRORS RETURN ProgId (ClassId, GUID whatever i
>don't
>> care) OF THE OBJECT THAT FAILED!!!! DAMNIT!
>
>
>

Mike Mitchell
07-16-2000, 09:28 AM
On Tue, 14 Mar 2000 08:33:21 -0500, "Steve Cochran"
<scochran@chattanooga.net> wrote:

>My peeve is the one that says "An unexpected error has occured." That's
>all.
>
Can't we have an error trap which Tries to Catch Finally the entire
contents of a user's brain? (You'd only need a few bytes for
storage...)

How many times have users reported a problem which, on examination,
bears no relation whatsoever to the actual bug?

If there were no users, we'd have no bugs, and life would be so sweet!

MM