RE: GPF error on 'Send' function

From: Eric Legault [MVP - Outlook] (elegaultZZZ_at_REMOVEZZZmvps.org)
Date: 03/15/05


Date: Tue, 15 Mar 2005 07:01:10 -0800

What is the exact error message that you are receiving?

My guess is that you are hitting the Object model guard. See this link for
more info:

Microsoft Outlook "Object Model Guard" Security Issues for Developers:
http://www.outlookcode.com/d/sec.htm

--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/
"Ran Avraham" wrote:
> 
> 
> 
> Hi all!
> 
> I want to be able to send email through Outlook by using VBA commands.
> My code is written in PowerBuilder (ver10 b5064) and I have Windows 2000
> sp4.
> 
> When I connect to Outlook 2003/XP there is no problem whatsoever.
> However, on Outlook2000 sp3 I get an error on the 'Send' function in the
> code.
> That made me realize, the problem is in Outlook and not in my code.
> 
> I did a research - I created a newly installed computer with no Office on
> it.
> I installed the original Office2000 version, and tried my code - it
> worked!
> Then I installed SR-1 version, and afterwards sp2, and in both cases the
> code still worked fine with no errors.
> But, after I installed sp3 (with all the up-to-date fixes) - the error
> appeared!
> 
> Can anyone tell me what happened in sp3 that prevent me from using my
> code?
> 
> 
> this is my PB code:
> 
> 
> oleobject     loo_ol_msg_cast, loo_ol_app
> int               li_rc
> 
> loo_ol_app = create oleobject
> li_rc = loo_ol_app.ConnectToNewObject ("Outlook.Application")
> if li_rc <> 0 then return  //connection failed
> 
> loo_ol_msg_cast = loo_ol_app.CreateItem(0)
> if IsNull (loo_ol_msg_cast) then return
> 
> loo_ol_msg_cast.to = "name@domaim" //valid email address
> loo_ol_msg_cast.Subject = "subject line"
> loo_ol_msg_cast.Body = "message text"
> 
> loo_ol_msg_cast.send () //on this line I get the error
> 
> loo_ol_msg_cast.disconnectobject ()
> loo_ol_app.disconnectobject ()
> 
> 
> TIA
> Ran.
> 
> 
> --
> I am using the free version of SPAMfighter for private users.
> It has removed 320 spam emails to date.
> Paying users do not have this message in their emails.
> Try www.SPAMfighter.com for free now!
> 
> 
> 


Relevant Pages

  • Re: emails not sending or receiving
    ... The exact error message would help. ... All I can suggest is to remove the account, ... receive emails, i have set up the account on outlook, on another machine ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Im sure glad I didnt buy a Mac Mini!
    ... I do not have a problem sending UTF-8 to anybody at all. ... It's only a problem that affects people who use Outlook and who also get ... which is merely an application running on Windows. ... emails from maccies are not using old versions of Outlook. ...
    (comp.sys.mac.advocacy)
  • Re: Outlook Email
    ... I opened Outlook and the emails showed up right ... >the (insert latest virus name here) virus, ... >|| personal account will be deleted without reading. ...
    (microsoft.public.outlook)
  • Re: Scanpst.exe errors scanning / problems importing old emails/co
    ... Data file' to go to my old PST file. ... So I am still trying to access my old contacts and old emails from my ... Diane Poremsky [MVP - Outlook] ... repeat the error message now cause outlook now opens in a new pst ...
    (microsoft.public.outlook)
  • Re: Outlook 2003 Patch to Address Receiving E-mail Error
    ... it is not an Outlook problem but a Symantec one. ... So here is the story from Symantec Technical Support. ... > bug in the latest via Live Update. ... >> emails using webmail with no trouble. ...
    (microsoft.public.outlook.general)