Crash in W2K 
Author Message
 Crash in W2K

I am using the following code in a word macro to determine if Outlook is
running, and if not to create an instance of it:

    Set appOutlook = GetObject(, "Outlook.Application")

    'check Outlook running

    If appOutlook Is Nothing Then

        'create an instance of Outlook (non-visible)

        Set appOutlook = New Outlook.Application

    End If

    Set nmsOutlook = appOutlook.GetNamespace("MAPI"

    Set fldPersonal = nmsOutlook.Folders("Personal Folders")

    Set fldContacts = fldPersonal.Folders("Solicitors")

The code works fine under Windows 98, but in Windows 2000 although
everything is OK if Outlook is open, if it is not Outlook appears to start
and then crash (error message is access violation). Any suggestions?



Sat, 31 Jan 2004 19:14:03 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Crash in W2K

2. VB5 crashes under W2K after ending execution

3. Distinguish between XP home/prof, w2k SP level, w2K server/prof

4. Help on Crashing Application (DLL Crash)

5. SP5 crashes - way to get enhancements without crashes??

6. Crash: VB Crashes with CR 7

7. Setting W2K folder permissions in code

8. Library module updates under W2K

9. Auto naming PDF files created from Report in W2K

10. Compile Error opeing Switchboard in W2K

11. access reports after upgrade to W2K

12. Save DB / W2K

 

 
Powered by phpBB® Forum Software