Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.* 1 > Newsgroup comp.lang.clipper.visual-objects

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-08-2004, 03:39 PM
John Martens
Guest
 
Posts: n/a
Default mailto: error

I'm triing to give my users several different ways to send mail from my app.
One of it is the mailto: command that is send by ShellExecute()

When sending the mail it works well for small mailbody's

When the mailbody is bigger there is a VO error.
Are there some known limits on this ?

John

ERROR on this line:
IF ShellExecute(NULL_PTR, NULL_PSZ, PSZ(cShell), NULL_PSZ, NULL_PSZ,
SW_SHOWNORMAL) == NULL_PTR

ERROR code
Error Code: 50 [ ]
Subsystem: VO-CODE
Error Subcode: 5333
Argument Number: 2




Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 07-08-2004, 03:54 PM
D.J.W. van Kooten
Guest
 
Posts: n/a
Default Re: mailto: error

On Thu, 8 Jul 2004 17:39:11 +0200, "John Martens"
<CAVO@TennisHulp.info> wrote:

>One of it is the mailto: command that is send by ShellExecute()

Hello John,
>
>ERROR on this line:
>IF ShellExecute(NULL_PTR, NULL_PSZ, PSZ(cShell), NULL_PSZ, NULL_PSZ,
>SW_SHOWNORMAL) == NULL_PTR



I use

ShellExecute(NULL,String2Psz("open"),String2Psz("m ailto:x@y.com"),NULL,
NULL,SW_ShowNormal)

so the 2nd argument differs, and there's your error.

Dick van Kooten
Reply With Quote
  #3 (permalink)  
Old 07-08-2004, 04:03 PM
John Martens
Guest
 
Posts: n/a
Default Re: mailto: error

Dick,

IF ShellExecute(NULL_PTR, String2Psz("open"), PSZ(cShell), NULL_PSZ,
NULL_PSZ, SW_SHOWNORMAL) == NULL_PTR

Gives the same error on the same line with the same VO-error
Error Code: 50 [ ]
Subsystem: VO-CODE
Error Subcode: 5333
Argument Number: 2

John

"D.J.W. van Kooten" <kooten@ic2remove.this.com> schreef in bericht
news:40ed6d96.40486093@news.zonnet.nl...
> On Thu, 8 Jul 2004 17:39:11 +0200, "John Martens"
> <CAVO@TennisHulp.info> wrote:
>
> >One of it is the mailto: command that is send by ShellExecute()

> Hello John,
> >
> >ERROR on this line:
> >IF ShellExecute(NULL_PTR, NULL_PSZ, PSZ(cShell), NULL_PSZ, NULL_PSZ,
> >SW_SHOWNORMAL) == NULL_PTR

>
>
> I use
>
> ShellExecute(NULL,String2Psz("open"),String2Psz("m ailto:x@y.com"),NULL,
> NULL,SW_ShowNormal)
>
> so the 2nd argument differs, and there's your error.
>
> Dick van Kooten



Reply With Quote
  #4 (permalink)  
Old 07-08-2004, 04:39 PM
Marshall Rhinehart
Guest
 
Posts: n/a
Default Re: mailto: error

John,

>
> IF ShellExecute(NULL_PTR, String2Psz("open"), PSZ(cShell), NULL_PSZ,
> NULL_PSZ, SW_SHOWNORMAL) == NULL_PTR
>
> Gives the same error on the same line with the same VO-error
> Error Code: 50 [ ]
> Subsystem: VO-CODE
> Error Subcode: 5333
> Argument Number: 2
>
> John
>


A problem with a big email and not a smaller one would lead me to look for
something preceding this that is screwing up memory. Bigger email could
cause GC, that a smaller one wouldn't.

Some people have been using CreateProcess rather than ShellExecute.

Finally, the first parameter is looking for a window, the code that Dick
posted used a NULL rather than a NULL_PTR, any difference? (You can see my
background is Clipper...and not C <g>.)

Marshall


Reply With Quote
  #5 (permalink)  
Old 07-08-2004, 05:06 PM
Malcolm Gray
Guest
 
Posts: n/a
Default Re: mailto: error

John Martens wrote:
> I'm triing to give my users several different ways to send mail from
> my app. One of it is the mailto: command that is send by
> ShellExecute()
>
> When sending the mail it works well for small mailbody's
>
> When the mailbody is bigger there is a VO error.
> Are there some known limits on this ?


others have previously reported limits on shellexecute with mailto:
but I thought they reported it simply not working (basically
it looked like either a mailer limit or a commandline limt)


Reply With Quote
  #6 (permalink)  
Old 07-09-2004, 12:55 AM
Sven Ebert
Guest
 
Posts: n/a
Default Re: mailto: error

Dick,

can you try the following:

IF ShellExecute(NULL_PTR, String2Psz("open"), String2Psz(cShell), NULL_PSZ,
NULL_PSZ, SW_SHOWNORMAL) == NULL_PTR


If cShell is a VO string, PSZ(cShell) could be the reason for the error.
Try String2Psz(cShell) instead.

Sven


Reply With Quote
  #7 (permalink)  
Old 07-09-2004, 06:09 AM
John Martens
Guest
 
Posts: n/a
Default Re: mailto: error

Sven/Marshall,

IF ShellExecute(NULL, String2Psz("open"), String2Psz(cShell), NULL_PSZ,
NULL_PSZ, SW_SHOWNORMAL) == NULL_PTR

Still gives the same error.
When I make the string cShell smaller it works. There seems to be no
relation to the chars in it but on the size.

CreateProcess(NULL_PTR, String2Psz(cShell), NULL_PTR, NULL_PTR, FALSE, 0,
NULL_PTR, NULL_PTR, @startup, @pro_inf)

Always returns false when using mailto: as the start of cShell

John

"Sven Ebert" <sven.ebert3@vodafone.de> schreef in bericht
news:2l68ocF9cjmgU1@uni-berlin.de...
> Dick,
>
> can you try the following:
>
> IF ShellExecute(NULL_PTR, String2Psz("open"), String2Psz(cShell),

NULL_PSZ,
> NULL_PSZ, SW_SHOWNORMAL) == NULL_PTR
>
>
> If cShell is a VO string, PSZ(cShell) could be the reason for the error.
> Try String2Psz(cShell) instead.
>
> Sven
>
>



Reply With Quote
  #8 (permalink)  
Old 07-09-2004, 06:29 AM
Phil McGuinness
Guest
 
Posts: n/a
Default Re: mailto: error

John / Sven

There is an issue like less 200 chars for Windows 98 I have found.

Phil McGuinness - Sherlock Software
-------

"John Martens" <CAVO@TennisHulp.info> wrote in message
news:acd56$40ee371e$513b5192$18297@news2.zonnet.nl ...
> Sven/Marshall,
>
> IF ShellExecute(NULL, String2Psz("open"), String2Psz(cShell), NULL_PSZ,
> NULL_PSZ, SW_SHOWNORMAL) == NULL_PTR
>



Reply With Quote
  #9 (permalink)  
Old 07-09-2004, 06:30 AM
John Martens
Guest
 
Posts: n/a
Default Re: mailto: error

Phil,

So not in XP ?

John

"Phil McGuinness" <heyphil@sherlock.com.au> schreef in bericht
news:2l6s7lF7vansU1@uni-berlin.de...
> John / Sven
>
> There is an issue like less 200 chars for Windows 98 I have found.
>
> Phil McGuinness - Sherlock Software
> -------
>
> "John Martens" <CAVO@TennisHulp.info> wrote in message
> news:acd56$40ee371e$513b5192$18297@news2.zonnet.nl ...
> > Sven/Marshall,
> >
> > IF ShellExecute(NULL, String2Psz("open"), String2Psz(cShell), NULL_PSZ,
> > NULL_PSZ, SW_SHOWNORMAL) == NULL_PTR
> >

>
>



Reply With Quote
  #10 (permalink)  
Old 07-09-2004, 01:35 PM
Phil McGuinness
Guest
 
Posts: n/a
Default Re: mailto: error

John,

I gave up on Shellexecute() for attachments to the default mail handler.
If I have to send attachments I use SMTP or Outlook or MAPI.

Phil McGuinness - Sherlock Software
----------


Reply With Quote
  #11 (permalink)  
Old 07-09-2004, 03:36 PM
John Martens
Guest
 
Posts: n/a
Default Re: mailto: error

Phil,

I think I'm going to use SMTP as well.
MAPI is my default solution but some users that have strict safety policies
or less compatible mail clients do not get MAPI working.

John

"Phil McGuinness" <heyphil@sherlock.com.au> schreef in bericht
news:2l7l6bF9nnm5U1@uni-berlin.de...
> John,
>
> I gave up on Shellexecute() for attachments to the default mail handler.
> If I have to send attachments I use SMTP or Outlook or MAPI.
>
> Phil McGuinness - Sherlock Software
> ----------
>
>



Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: annoying error message in sas log rao bingi Newsgroup comp.soft-sys.sas 0 04-10-2006 01:18 AM
Re: annoying error message in sas log toby dunn Newsgroup comp.soft-sys.sas 0 04-09-2006 09:34 PM
Re: annoying error message in sas log Paul M. Dorfman Newsgroup comp.soft-sys.sas 0 04-09-2006 08:59 PM
Re: Stderror, Error Stdev, Residual error ???/ Are they same Swank, Paul R Newsgroup comp.soft-sys.sas 0 11-03-2005 07:47 PM
How to Score a New Data set Based Proc NLMIXED Results dmka Newsgroup comp.soft-sys.sas 0 07-29-2005 10:24 AM



All times are GMT. The time now is 07:38 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.