Re: GPF error on 'Send' function

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

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


Date: Thu, 17 Mar 2005 07:21:01 -0800

This may or may not help:

List of issues that are fixed in Outlook 2000 by Office 2000 Service Pack 3:
http://support.microsoft.com/kb/326668

--
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:
> 
> 
> I don't think the problem is in PowerBuilder since the code works on newer
> (and older!) versions of Outlook.
> It works even on Outlook2000 SR-1 SP2 where the Object model guard was
> first
> introduced - so probably this is not the issue.
> 
> What I want to know, is what changes were made between SP2 and SP3 that
> might cause me the problem? (and that's why I posted my question on an
> Outlook newsgroup)
> Is there any other known similar or close issues?
> 
> I would love to get some related Outlook links, maybe I can cross
> information between Outlook and PowerBuilder.
> 
> Thanks a lot!
> 
> 
> "Eric Legault [MVP - Outlook]" <elegaultZZZ@REMOVEZZZmvps.org> wrote in
> message news:3FE023D0-FEDF-41E8-904D-29D7CACF97DD@microsoft.com...
> > Sorry, I don't know PowerBuilder and I have no clue what could be
> happening
> > there.  Do you have valid Outlook and MailItem objects before you call
> the
> > Send method?
> >
> > --
> > 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:
> >
> > >
> > >
> > > The error message comes from PowerBuilder and it says:
> > >
> > > "Error: Error calling external object function send at line 15 in
> function
> > > of_send_outlook of object uo_email"
> > >
> > >
> > >
> > > "Eric Legault [MVP - Outlook]" <elegaultZZZ@REMOVEZZZmvps.org> wrote
> in
> > > message news:B654D0B3-96CB-4B72-9CD7-C458D3688F2B@microsoft.com...
> > > > 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!
> > > > >
> > > > >
> > > > >
> > >
> > >
> > > --
> > > I am using the free version of SPAMfighter for private users.
> > > It has removed 321 spam emails to date.
> > > Paying users do not have this message in their emails.
> > > Try www.SPAMfighter.com for free now!
> > >
> > >
> > >
> 
> 
> --
> I am using the free version of SPAMfighter for private users.
> It has removed 322 spam emails to date.
> Paying users do not have this message in their emails.
> Try www.SPAMfighter.com for free now!
> 
> 
> 

Quantcast