PC Review


Reply
Thread Tools Rate Thread

16 is the magic number

 
 
George Hester
Guest
Posts: n/a
 
      30th Jun 2003
I have been developing a VBA in Outlook 2002. What this does is grab all spam and fiddles with it so they all end up in the delete folder. Works pretty well but isn't ready for prime-time yet.

But something I just noticed that I have never been aware of before. If I have 16 spams received at once so that the VBA acts on them all is fine. The program does what it is supposed to do. But if I have more then 16 mail items say 17 received at once then the VBA program fails to do anything. It doesn't run. 16 and less no problem. More than 16 failure. The VBA never even initializes. It just gives up without even getting out of the starting gate.

So this means if someone were to not access their Outlook 2002 for a period of time and then did and if there were more then 16 mail items waiting on the server for the client, the VBA I have made would fail to initialize.

I can reproduce this every rime. It has nothing to do with the type of mail items received. It is the number of mail items waiting to be served to the client where this behavior materializes.

So my question is this. Does Extended MAPI have a way of of allowing only chunks say mod 16 of items received so that it processes them in batches and the remainder in mod 16 of course are put on hold for processing at a later time? If not do you think this behavior can be worked around in another fashion? Say by using COM+ which can release received mail items in batches mod 16 to the client Outlook 2002?

Actually I am at a loss here why this is occurring. I assume it has something to do with the fact that 16 is a magic number in Computer geek. If any number I would have assumed it would be 32 and in 64 bit operating systems 64. But 16 in a 32-bit operating system? Something ain't right.

--
George Hester
__________________________________
 
Reply With Quote
 
 
 
 
Patricia Cardoza - [MVP Outlook]
Guest
Posts: n/a
 
      1st Jul 2003
Not sure, but I'd guess a memory leak somewhere.

--
Patricia Cardoza
Outlook MVP

***Please post all replies to the newsgroups***
"George Hester" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
I have been developing a VBA in Outlook 2002. What this does is grab all
spam and fiddles with it so they all end up in the delete folder. Works
pretty well but isn't ready for prime-time yet.

But something I just noticed that I have never been aware of before. If I
have 16 spams received at once so that the VBA acts on them all is fine.
The program does what it is supposed to do. But if I have more then 16 mail
items say 17 received at once then the VBA program fails to do anything. It
doesn't run. 16 and less no problem. More than 16 failure. The VBA never
even initializes. It just gives up without even getting out of the starting
gate.

So this means if someone were to not access their Outlook 2002 for a period
of time and then did and if there were more then 16 mail items waiting on
the server for the client, the VBA I have made would fail to initialize.

I can reproduce this every rime. It has nothing to do with the type of mail
items received. It is the number of mail items waiting to be served to the
client where this behavior materializes.

So my question is this. Does Extended MAPI have a way of of allowing only
chunks say mod 16 of items received so that it processes them in batches and
the remainder in mod 16 of course are put on hold for processing at a later
time? If not do you think this behavior can be worked around in another
fashion? Say by using COM+ which can release received mail items in batches
mod 16 to the client Outlook 2002?

Actually I am at a loss here why this is occurring. I assume it has
something to do with the fact that 16 is a magic number in Computer geek.
If any number I would have assumed it would be 32 and in 64 bit operating
systems 64. But 16 in a 32-bit operating system? Something ain't right.

--
George Hester
__________________________________


 
Reply With Quote
 
Randall Random
Guest
Posts: n/a
 
      1st Jul 2003
Sounds like a memory leak to me!


>-----Original Message-----
>I have been developing a VBA in Outlook 2002. What this

does is grab all spam and fiddles with it so they all end
up in the delete folder. Works pretty well but isn't
ready for prime-time yet.
>
>But something I just noticed that I have never been aware

of before. If I have 16 spams received at once so that
the VBA acts on them all is fine. The program does what
it is supposed to do. But if I have more then 16 mail
items say 17 received at once then the VBA program fails
to do anything. It doesn't run. 16 and less no problem.
More than 16 failure. The VBA never even initializes. It
just gives up without even getting out of the starting
gate.
>
>So this means if someone were to not access their Outlook

2002 for a period of time and then did and if there were
more then 16 mail items waiting on the server for the
client, the VBA I have made would fail to initialize.
>
>I can reproduce this every rime. It has nothing to do

with the type of mail items received. It is the number of
mail items waiting to be served to the client where this
behavior materializes.
>
>So my question is this. Does Extended MAPI have a way of

of allowing only chunks say mod 16 of items received so
that it processes them in batches and the remainder in mod
16 of course are put on hold for processing at a later
time? If not do you think this behavior can be worked
around in another fashion? Say by using COM+ which can
release received mail items in batches mod 16 to the
client Outlook 2002?
>
>Actually I am at a loss here why this is occurring. I

assume it has something to do with the fact that 16 is a
magic number in Computer geek. If any number I would have
assumed it would be 32 and in 64 bit operating systems
64. But 16 in a 32-bit operating system? Something ain't
right.
>
>--
>George Hester
>__________________________________
>.
>

 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      1st Jul 2003
There is a known problem of Item_Add not firing if too many messages
are received at one time. It's mentioned in various KB articles.

Extended MAPI can get around this but you can only program MAPI using
C++ or Delphi, not VB/VBA. You can use Redemption
(www.dimastr.com/redemption) and MAPIUtils.NewMail or
Redemption.MAPITable to get around the problem.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm


"George Hester" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
I have been developing a VBA in Outlook 2002. What this does is grab
all spam and fiddles with it so they all end up in the delete folder.
Works pretty well but isn't ready for prime-time yet.

But something I just noticed that I have never been aware of before.
If I have 16 spams received at once so that the VBA acts on them all
is fine. The program does what it is supposed to do. But if I have
more then 16 mail items say 17 received at once then the VBA program
fails to do anything. It doesn't run. 16 and less no problem. More
than 16 failure. The VBA never even initializes. It just gives up
without even getting out of the starting gate.

So this means if someone were to not access their Outlook 2002 for a
period of time and then did and if there were more then 16 mail items
waiting on the server for the client, the VBA I have made would fail
to initialize.

I can reproduce this every rime. It has nothing to do with the type
of mail items received. It is the number of mail items waiting to be
served to the client where this behavior materializes.

So my question is this. Does Extended MAPI have a way of of allowing
only chunks say mod 16 of items received so that it processes them in
batches and the remainder in mod 16 of course are put on hold for
processing at a later time? If not do you think this behavior can be
worked around in another fashion? Say by using COM+ which can release
received mail items in batches mod 16 to the client Outlook 2002?

Actually I am at a loss here why this is occurring. I assume it has
something to do with the fact that 16 is a magic number in Computer
geek. If any number I would have assumed it would be 32 and in 64 bit
operating systems 64. But 16 in a 32-bit operating system? Something
ain't right.

--
George Hester
__________________________________


 
Reply With Quote
 
George Hester
Guest
Posts: n/a
 
      3rd Jul 2003
Ken this is just too much. No matter what I try to do, to do what I want to do I can't do what I want to do becasue these Microsoft products don't do what they are supposed to do. No damn wonder it is so easy for some to take all the security that is touted for these products and turn it into rubbish. Everyday there is a new fix for a Buffer Overrun in one product or another. I understand the Windows Operating system is complex and these issues are to be expected. But why just produce more rubbish before cleaning up the rubbish that has been previously made? That I don't understand. I guess the answer is in the fact that a computer has an average life of maybe 5 years for most and Microsoft counts on this to make additional rubbish because out of date rubbish isn't rubbish anymore. It's money received and that takes care of that.

I had the sneakiest suspicion if I posed this question I'd be spammed with contenpt for being such a nabob. Thanks for clearing it up for me.

--
George Hester
__________________________________
"Ken Slovak - [MVP - Outlook]" <(E-Mail Removed)> wrote in message news:%(E-Mail Removed)...
> There is a known problem of Item_Add not firing if too many messages
> are received at one time. It's mentioned in various KB articles.
>
> Extended MAPI can get around this but you can only program MAPI using
> C++ or Delphi, not VB/VBA. You can use Redemption
> (www.dimastr.com/redemption) and MAPIUtils.NewMail or
> Redemption.MAPITable to get around the problem.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Lead Author, Professional Outlook 2000 Programming, Wrox Press
> Lead Author, Beginning VB 6 Application Development, Wrox Press
> Attachment Options
> http://www.slovaktech.com/attachmentoptions.htm
> Extended Reminders
> http://www.slovaktech.com/extendedreminders.htm
>
>
> "George Hester" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> I have been developing a VBA in Outlook 2002. What this does is grab
> all spam and fiddles with it so they all end up in the delete folder.
> Works pretty well but isn't ready for prime-time yet.
>
> But something I just noticed that I have never been aware of before.
> If I have 16 spams received at once so that the VBA acts on them all
> is fine. The program does what it is supposed to do. But if I have
> more then 16 mail items say 17 received at once then the VBA program
> fails to do anything. It doesn't run. 16 and less no problem. More
> than 16 failure. The VBA never even initializes. It just gives up
> without even getting out of the starting gate.
>
> So this means if someone were to not access their Outlook 2002 for a
> period of time and then did and if there were more then 16 mail items
> waiting on the server for the client, the VBA I have made would fail
> to initialize.
>
> I can reproduce this every rime. It has nothing to do with the type
> of mail items received. It is the number of mail items waiting to be
> served to the client where this behavior materializes.
>
> So my question is this. Does Extended MAPI have a way of of allowing
> only chunks say mod 16 of items received so that it processes them in
> batches and the remainder in mod 16 of course are put on hold for
> processing at a later time? If not do you think this behavior can be
> worked around in another fashion? Say by using COM+ which can release
> received mail items in batches mod 16 to the client Outlook 2002?
>
> Actually I am at a loss here why this is occurring. I assume it has
> something to do with the fact that 16 is a magic number in Computer
> geek. If any number I would have assumed it would be 32 and in 64 bit
> operating systems 64. But 16 in a 32-bit operating system? Something
> ain't right.
>
> --
> George Hester
> __________________________________
>
>

 
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
Magic Number = 4, Go Chicago Cubs! Windows Vista General Discussion 3 10th Oct 2007 07:33 PM
OT: Chicago Cubs Win, Magic Number Reduced To 1. Windows Vista General Discussion 2 29th Sep 2007 05:07 AM
MAGIC NUMBER WELCOME ### Microsoft Dot NET 1 10th May 2007 06:15 AM
SATA disk offline - invalid magic number Gido Storage Devices 8 20th Dec 2006 04:59 AM
magic jellybean fkeyfinder 1.41 and using the number for updates John Bolton Windows XP General 3 17th Jul 2006 10:25 PM


Features
 

Advertising
 

Newsgroups
 


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