Out of Memory adding items to listbox from clipboard-pasted textbox



  • 1. Outlook hangs at 100% CPU under certain conditions.
    Problem: Outlook hangs at 100% CPU under certain conditions. Conditions: Outlook operates as long as it is open. You can read messages via "double-clicking" on the message or using the "preview pane". Outlook hangs when you try to close it. The icon remains at the bottom and if you look at task manager, Outlook is at 100%. We have localized the problem to the opening of ANY email. We can open and close Outlook with no problems IF YOU DO NOT READ ANY EMAILS. As soon as your read one email, you are screwed when you close Outlook. We insured that under "Tools" => "Options" => "Mail Format" and "Compose in this message format" is set to "Rich Text" and both checkboxes are "unchecked" for using Microsoft Word for anything. PLEASE HELP!!! We are doing a state wide implementation and have not found a resolution. 30+ machines are experiencing this problem and we know more are soon to come.
  • 2. Which way should I add an AddressEntry?
    Hi, how do I add a ContactItem to a specific AddressList? I have populate a ListBox with user's Address Book. User will select the specific Address Book and an AddressEntry will be added into that AddressList. So do I add the entry like this: AddressList = oNs.AddressLists.Item(UserSelectedIndex) myentry = AddressList.AddressEntries.Add("SMTP", "testtest", " XXXX@XXXXX.COM ") myentry.Update() (If I add it this way, I do not have access to other properties such as CompanyName, Birthday etc etc) Or like this: sCtact = oApp.CreateItem(Outlook.OlItemType.olContactItem) sCtact.FullName = "Test 123" sCtact.CompanyName = "His Company Name" sCtact.Birthday= "His birthday" sCtact.Email1Address = XXXX@XXXXX.COM sCtact.Close(Outlook.OlInspectorClose.olSave) (If I add it this way, it will not be added to user's specified address book) Thanks.
  • 3. Outlook 2000 vs. 2002 vs. 2003 + vb6 addin
    Hi there, i wrote an addin in visual basic 6 prof. for outlook - on the development-system is outlook 2003 installed and everything works fine (icons, commandbar-buttons and a property page). moving the dll and the ocx to a new system with same outlook (2003) shows the property page but *not* the commandbar-icons... another test on a outlook 2002 system fails: *no* commandbar and *no* property page.... ...so iam now thinking about the compatibility of outlook 2002/2003 and what i should do to get it working with ol 2000/2002/2003 without any strange things - is there any special thing i have to care about? many thanks in advance, /Marc
  • 4. Message Class property getting reset
    hi all, I have a folder that contains several custom forms in which do some data manipulation when a user creates new instances of those forms. Whenever i change the body property, the messageclass gets reset from "IPM.Post.<Custom>" to "IPM.Post". Can anyone tell me why this happens and what i can do to prevent it? thanks in advance. sarah

Out of Memory adding items to listbox from clipboard-pasted textbox

Postby caveatRob@nospam.gmail.com » Wed, 30 Jul 2008 02:38:48 GMT

I have a form with a listbox, a textbox, and a button. I paste a multi-
line chunk of text into the textbox and push the button to parse the
text into a listbox.

I us the following code:


Dim sTmp As String, iPos1 As Integer, iPos2 As Integer

sTmp = UserForm1.TextBox476.Text
iPos1 = 1
iPos2 = InStr(sTmp, vbCrLf)
Do While iPos2
UserForm1.ListBox3.AddItem Mid$(sTmp, iPos1, iPos2 - iPos1)
iPos1 = iPos2 + 1
iPos2 = InStr(iPos1, sTmp, vbCrLf)

The first time the form runs, it seems to work fine. Subsequent
loadings of the form result in Out of Memory errors that persist until
I quit an restart Outlook 2007.

Any ideas? Can the textbox hold all the clipboard characters?

Re: Out of Memory adding items to listbox from clipboard-pasted textbox

Postby Ken Slovak - [MVP - Outlook] » Wed, 30 Jul 2008 04:53:13 GMT

Do you want the textbox and listbox to retain their contents from run to 
run? If not have you tried clearing both on the start of each run?

Do you know on what line the error is occurring?

Ken Slovak
[MVP - Outlook]
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.



Who is online

Users browsing this forum: No registered users and 59 guest