| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 3 | |
If I break the connection between the FTP client and the server during a get() (recognized by QTimer), I delete the QFtp-Object. The problem is that I get an "access violation error" in "FtpPI::readyRead()" when process the function "commandSocket.canReadLine()". It only happens if "TransferMode==QFtp::Active". -- [ signature omitted ]
On Friday 16 May 2008 09:44:18 sTormtrOOpa wrote: > If I break the connection between the FTP client and the server during a > get() (recognized by QTimer), I delete the QFtp-Object. The problem is > that I get an "access violation error" in "FtpPI::readyRead()" when > process the function "commandSocket.canReadLine()". > It only happens if "TransferMode==QFtp::Active". QFtp and QHttp are fragile classes. Don't delete them while they are working. But a crash is bad nonetheless. Can you please submit a bug report to us at Trolltech? If you have a compileable example in addition, it would be great. -- [ signature omitted ]
Attachment:
signature.asc
Description: This is a digitally signed message part.
Ok, I will do that. But the problem is I cannot stop the QFtp working. Because of this reason I tried to just delete the object. The QFtp-object is not reacting if I had an interruption and then try to establish another connection. After the interruption I send an abort() and wait for the state changed to QFtp::Unconnected, but then can neither delete it nor renew the connection! -- [ signature omitted ]
"sTormtrOOpa" <sTormtrOOpa@xxxxxxx> wrote in message news:g0jkf9$1e1$1@xxxxxxxxxxxxxxxx > Ok, I will do that. > > But the problem is I cannot stop the QFtp working. Because of this reason > I tried to just delete the object. > The QFtp-object is not reacting if I had an interruption and then try to > establish another connection. > After the interruption I send an abort() and wait for the state changed to > QFtp::Unconnected, but then can neither delete it nor renew the > connection! I noticed that it sometimes helps to use a deleteLater() instead. Weird but true unfortunately, I have been bitten by the same (using QHttp) before as well. André -- [ signature omitted ]
André Somers schrieb: > > > "sTormtrOOpa" <sTormtrOOpa@xxxxxxx> wrote in message > news:g0jkf9$1e1$1@xxxxxxxxxxxxxxxx >> Ok, I will do that. >> >> But the problem is I cannot stop the QFtp working. Because of this >> reason I tried to just delete the object. >> The QFtp-object is not reacting if I had an interruption and then try >> to establish another connection. >> After the interruption I send an abort() and wait for the state >> changed to QFtp::Unconnected, but then can neither delete it nor renew >> the connection! > I noticed that it sometimes helps to use a deleteLater() instead. Weird > but true unfortunately, I have been bitten by the same (using QHttp) > before as well. > > André > > I'm using deleteLater(), but it just delays the crash. Is there a possible workaround or a planed bug-fix? -- [ signature omitted ]
On Friday 16 May 2008 14:21:55 sTormtrOOpa wrote: > I'm using deleteLater(), but it just delays the crash. Is there a > possible workaround or a planed bug-fix? The bug-fix will be planned when you send the bug report :-) A detailed explanation sent to our support engineers or, even better, a compileable example of the issue will go to great lengths in improving the time it'll take me to fix the issue. -- [ signature omitted ]
Attachment:
signature.asc
Description: This is a digitally signed message part.
Thiago Macieira schrieb: > On Friday 16 May 2008 14:21:55 sTormtrOOpa wrote: >> I'm using deleteLater(), but it just delays the crash. Is there a >> possible workaround or a planed bug-fix? > > The bug-fix will be planned when you send the bug report :-) > > A detailed explanation sent to our support engineers or, even better, a > compileable example of the issue will go to great lengths in improving the > time it'll take me to fix the issue. > ok. I will send the bug report via the " Trolltech Bug Report Form" and the files to your email... -- [ signature omitted ]
Hi, > ok. I will send the bug report via the " Trolltech Bug Report Form" and > the files to your email... I would just email to bugs@xxxxxxxxxxxxx with the lot: description and the files. :-) André -- [ signature omitted ]
Good suggestion, but the correct adress is: qt-bugs@xxxxxxxxxxxxx Cheers, Peter > -----Ursprüngliche Nachricht----- > Von: André Somers [mailto:andre@xxxxxxxxxxxxxxxx] > Gesendet: Freitag, 16. Mai 2008 15:45 > An: qt-interest@xxxxxxxxxxxxx > Betreff: Re: QFtp get()-interruption issue > > Hi, > > > ok. I will send the bug report via the " Trolltech Bug > Report Form" and > > the files to your email... > I would just email to bugs@xxxxxxxxxxxxx with the lot: > description and the > files. :-) > > André > > > -- > To unsubscribe - send a mail to > qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the > subject or the body. > List archive and information: http://lists.trolltech.com/qt-interest/ > > -- [ signature omitted ]