It is currently Thu May 23, 2013 4:17 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 336 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 23  Next
Author Message
 Post subject:
PostPosted: Mon Feb 12, 2007 12:00 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
DoubleDutch wrote:
Sorry - nothing to do with threadsafe, just a coincidence.

It's to do with authentication.

I tested your example programs:

PureSMTP_Test.pb -> works fine

PureSMTP_TEST_AUTH.pb -> crashes at PureSMTP_SendMail

Authentication uses base64 encoding ; maybe this is the problem with vista.
Could you please download the test programs again and use authentication (to enable authentication just fill the UseName/Password stringgadgets).

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Last edited by gnozal on Mon Feb 12, 2007 12:13 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 12, 2007 12:03 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 2853
Location: United Kingdom
This works:

Status.l = PureSMTP_SendMail(MailTo, MailFrom, Subject, MsgBody, Attachments, "", Password)

This crashes:

Status.l = PureSMTP_SendMail(MailTo, MailFrom, Subject, MsgBody, Attachments, UserName, Password)

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 12, 2007 12:04 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 2853
Location: United Kingdom
I did fill in the password string, works fine...

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 12, 2007 12:07 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 2853
Location: United Kingdom
Just tested the Base64 commands in PureBasic - no crash.

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 12, 2007 12:13 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 2853
Location: United Kingdom
This also crashes:

Status.l = PureSMTP_SendMail(MailTo, MailFrom, Subject, MsgBody, Attachments, UserName,"")

When it crashes, it gets this far:

220 spunkymail-a11.g.dreamhost.com ESMTP

Hope this helps...

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 12, 2007 12:13 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
Could you please download the test programs again and use authentication (to enable authentication just fill the UseName/Password stringgadgets).

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 12, 2007 12:17 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 2853
Location: United Kingdom
Tested with your new test program.

Message sent!

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 12, 2007 12:21 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 2853
Location: United Kingdom
I tested again - this time putting the wrong password in by accident.

It crashed:

Error c00000005
An attempted read or write to/from an address to which theat process isn't allowed
Module: c:\purebasic400\Program\PureSMTP_VISTA_TEST.pb; Line: 416

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 12, 2007 12:24 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 2853
Location: United Kingdom
Trying it again, with correct info had the same error.

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 12, 2007 12:36 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
DoubleDutch wrote:
Tested with your new test program.

Message sent!
That's weird ...
Maybe some strange Tailbite problem like the one with Win98 ( http://www.purebasic.fr/english/viewtop ... &start=141 )

I have uploaded http://freenet-homepage.de/gnozal/PureSMTP_BETA.zip (standard ANSI debug lib), to be placed in the userlibraries folder.
It will create a PureSMTP_TRACE.txt log file, maybe it will help to locate the problem.

Edit (was posting while you posted)
Line 416 : FreeMemory(*B64EncodeBufferB)

Code:
Procedure.s Base64Encode(strText.s)
  Protected Result.s, *B64EncodeBufferA, *B64EncodeBufferB, OutputBufferLength.l, InputBufferLength.l
  InputBufferLength = Len(strText)
  OutputBufferLength = InputBufferLength * 2
  If OutputBufferLength < 64
    OutputBufferLength = 64
  EndIf
  *B64EncodeBufferA = AllocateMemory(InputBufferLength)
  If *B64EncodeBufferA
    *B64EncodeBufferB = AllocateMemory(OutputBufferLength)
    If *B64EncodeBufferB
      PokeS(*B64EncodeBufferA, strText) ;     PokeS(*B64EncodeBufferA, strText, InputBufferLength, #PB_Ascii) if unicode
      Base64Encoder(*B64EncodeBufferA, InputBufferLength, *B64EncodeBufferB, OutputBufferLength)
      Result = PeekS(*B64EncodeBufferB)
      FreeMemory(*B64EncodeBufferB)
    EndIf
    FreeMemory(*B64EncodeBufferA)
  EndIf
  ProcedureReturn Result
EndProcedure

Debug Base64Encode("hello world")
Could you test this code in vista ?

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 12, 2007 12:53 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 2853
Location: United Kingdom
Result of your test source:

aGVsbG8gd29ybGQ=


Result of the test library:

Status.l = PureSMTP_SendMail(MailTo, MailFrom, Subject, MsgBody, Attachments, UserName, Password)

I get a compilation error:
line 16: PureSMTP_SendMail(): Incorrect number of parameters.

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 12, 2007 1:04 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
DoubleDutch wrote:
Result of your test source:
aGVsbG8gd29ybGQ=
So no crash ...


DoubleDutch wrote:
Result of the test library:
Status.l = PureSMTP_SendMail(MailTo, MailFrom, Subject, MsgBody, Attachments, UserName, Password)
I get a compilation error:
line 16: PureSMTP_SendMail(): Incorrect number of parameters.
Oops, sorry, wrong lib version, should be fixed.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 12, 2007 1:14 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 2853
Location: United Kingdom
The only crash I could get with your Base64 routine is if the input is an empty string.

The new lib compiles and generates a PureSMTP_Trace file, but the file has zero length.

Maybe if you have a dialog between each step (incrementing a number). I can tell you which number it stops on?

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 12, 2007 1:32 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
DoubleDutch wrote:
The new lib compiles and generates a PureSMTP_Trace file, but the file has zero length.
Works here ... !
DoubleDutch wrote:
Maybe if you have a dialog between each step (incrementing a number). I can tell you which number it stops on?
Ok, I have uploaded a version with MessageRequester.
I need the message more than the number to locate the problem.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 12, 2007 1:44 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 2853
Location: United Kingdom
The last message that is okay is #10

SEND: YW50aG9 ... NvbQ==

(the ... is me, it didn't display this).

After #10 it crashed.

In case you need to know, message 9, it was:

RECEIVE: 334 VXNI .... WU6

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 336 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 23  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye