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

H

H Gohel

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top