PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming OL2000 crash on CreateObject("Outlook.Application") - previously working macros

Reply

OL2000 crash on CreateObject("Outlook.Application") - previously working macros

 
Thread Tools Rate Thread
Old 01-07-2003, 08:00 PM   #1
H Gohel
Guest
 
Posts: n/a
Default OL2000 crash on CreateObject("Outlook.Application") - previously working macros


In <pan.2003.06.29.16.26.51.597128@yahoo.com>, Himanshu Gohel wrote:

> Outlook 2000 SP3 on Windows 2000 Pro SP4.
>
> I had a couple of macros running for the longest time, and now they both
> crash Outlook 2000, but I don't know since when because I haven't used
> them in a while. So I upgraded to Windows 2000 Pro SP4 (from
> SP3) and also upgraded Outlook 2000 from SR1 to SP3 to see if any of that
> would help, but it did not, the macros always cause a crash.
>
> The only thing I can think of is that I have recenly installed Visual C++
> .NET 2003 which has .NET Framework 1.1, and I still have a side-by-side
> install of .NET (2002) which uses .NET Framework 1.0.
>
> Anyway, I narrowed it down to this simple code:
>
> Sub test()
> Dim myOlApp As Application
> Set myOlApp = CreateObject("Outlook.Application")
> End Sub
>
> This alone is enough to duplicate the crash. When it crashes, I get the
> message:
>
> -----
> Inbox - Microsoft Outlook: OUTLOOK.EXE - Application Error
>
> The instruction at "0x059d1557" referenced memory at "0x3a42391c". The
> memory could not be "written".
> -----
>
> I click OK and then Outlook exits. 100% reproducible. Any ideas why
> this might be happening and what I can do to fix it? I created another
> test case just creating an integer and manipulating it and that runs
> without errors. Something about creating the object...
>
> Thanks.
>
> Himanshu


--
Himanshu (remove XXX from my email address to reply)

  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off