Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, May 2008
QFtp get()-interruption issue


Message 1 in thread

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 ] 

Message 2 in thread

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.


Message 3 in thread

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 ] 

Message 4 in thread


"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 ] 

Message 5 in thread

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 ] 

Message 6 in thread

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.


Message 7 in thread

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 ] 

Message 8 in thread

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 ] 

Message 9 in thread

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 ]