I am using smtpmail.p version 5.8a. I am getting a 2914 error. Put/Get functions not allowed on uninitialized memory. (2914)
Does anyone know what this could be OR what website I must use to download the latest copy of the smtpmail.p program.
You can get it at http://freeframework.sourceforge.net/
The lates version is here: http://freeframework.sourceforge.net/downloads/new/smtpmail/smtpmailv5_8c.p
5.8c is available from the FreeFrameWork project at http://freeframework.sourceforge.net/downloads/accepted/
I started to have erro (1387) * * * trying to wirte to a closed stream * * * on line 1338:
PROCEDURE Cleanup. IF vState < 0 THEN {&LOGGER} vMessage SKIP. {&Logger} "End SMTP Session" SKIP. IF MsgFile <> "" THEN OUTPUT {&MsgStream} CLOSE. OUTPUT {&Stream} CLOSE.
..
The IF vState < 0 linea is the 1338 line, so somehow the program cames to CLEANUP with the stream closed...
Any clue?
(using smtpmail58c.p)
RUN Cleanup is sprinkled through the source and can result in cleanup being run more than once.
Remove all the RUN Cleanups and add a FINALLY block to the main block with RUN Cleanup.
Would this turn version to 5.8d?
Isn't somewhere somebody autoriresed to create that version?
Shouldn't we pursue that?
what you think?
I think that would be very much fiddling around to move the cleanup procedure, as it is called from the middle of procedures which after the process inside de procedure, they keep doing stuff un til the end of procedure.
I plan to put some kind of stream xx:handle to manipulate it and query it's state before sending the output (all in the cleanup procedure).
The problem is I can't find how to ask if stream looger IS-OPENED() or something like that... I can't find queryabe attributes of the stream handle.
Am I correct trying to do that?
Thanks.
I did this a long time ago and if memory serves me correctly I simply removed all RUN Cleanup procedures and added a FINALLY block to the main block that performs RUN CleanUp.