Re: Which async methods trigger DONE ? (General questions)
Hi,
well... The .done-Event (not the notified -method, but the original OCX-exposed .done-Event) does not trigger when i follow this scenario:
- large email with huge attachment (so have plenty of time to react)
- starting transmission with .sendmessage
- everything runs fine, .progress fires and sets my progressbar pretty nicely...
- Now User decides to kill the sending and abort -Button is clicked
- the clickcode of the cmdbutton calls wodsmtp.disconnect() to kill it
- wodSMTP quits transmitting, .state is reset to 0, everything is well
...but: The .done-event did not trigger.
I have a simple messagebox( i am done )-call in the ocx-exposed .done-event, so i can easily see if it is really triggered.
The .done event triggers correctly if i let the transmissing end on its own without interrupting.
[code]
*!* VFP8.0 SP1 -> .DONE event in an wodsmtp.ocx on a simpleform
LPARAMETERS errorcode, errortext
=MESSAGEBOX( I am done )
IF not(EMPTY(errortext))
=MESSAGEBOX(errortext)
ENDIF
thisform.Closable=.T.
thisform.progress.Visible=.F.
[/code]
You see there is nothing spectacular in the method... [:uhoh:]
...but a disconnect.done won't show up, as a sendmessage.done comes up pretty well.
It's not hurting me so much, but if the ocx is still active disconnecting and i am already starting to release the form (containing the ocx) VFP will sure smell desaster.
Best regards
Michael
Complete thread:
- Which async methods trigger DONE ? - LOGO Datensysteme, 2006-06-02, 11:42
- Re: Which async methods trigger DONE ? - wodAlan, 2006-06-02, 12:31
- Re: Which async methods trigger DONE ? - LOGO Datensysteme, 2006-06-02, 14:13
- Re: Which async methods trigger DONE ? - wodAlan, 2006-06-02, 15:41
- Re: Which async methods trigger DONE ? - LOGO Datensysteme, 2006-06-02, 16:57
- Re: Which async methods trigger DONE ? - wodDrazen, 2006-06-02, 17:23
- Re: Which async methods trigger DONE ? - LOGO Datensysteme, 2006-06-06, 09:49
- Re: Which async methods trigger DONE ? - wodSupport, 2006-06-06, 12:52
- Re: Which async methods trigger DONE ? - LOGO Datensysteme, 2006-06-06, 13:51
- Re: Which async methods trigger DONE ? - wodSupport, 2006-06-06, 12:52
- Re: Which async methods trigger DONE ? - LOGO Datensysteme, 2006-06-06, 09:49
- Re: Which async methods trigger DONE ? - wodDrazen, 2006-06-02, 17:23
- Re: Which async methods trigger DONE ? - LOGO Datensysteme, 2006-06-02, 16:57
- Re: Which async methods trigger DONE ? - wodAlan, 2006-06-02, 15:41
- Re: Which async methods trigger DONE ? - LOGO Datensysteme, 2006-06-02, 14:13
- Re: Which async methods trigger DONE ? - wodAlan, 2006-06-02, 12:31