[Qt-interest] QFtp crashes under windows, do I need some extra stuff?
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Sun Jan 31 02:20:17 CET 2010
I have used QFtp quite a bit.. and have no problesm on windows...
1) You don't have to link in WS2_32.LBI because you are accessing it via
a shared library QNetwork
2) Its done inside the QFtp class if necessary.. I have never explicitly
called it
3) Nope...
4) Nope..
Post some code.. You probably have a UMR that is null on linux but in
windows is 0xFEFEFEF
Scoitt
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Miguel Cardenas
Sent: Friday, January 29, 2010 1:53 PM
To: qt-interest
Subject: [Qt-interest] QFtp crashes under windows,do I need some extra
stuff?
Hello friends
I am trying to port a X11 Qt application that uses QFtp to Windows. It
already compiles and loads, but when I try to connect the application
crashes. Note that it is currently 100% working under Linux.
It is a very simple program, just need to upload a single file to my
server, so the application only needs host/user/pass/filename, so it is
not related to the aplication or it would not run in Linux neither (I
guess).
Trying to findout the problem, remembered that my Windows applications
(VC++ without Qt) that use sockets, need to have linked WS2_32.LIB and
initialize the winsock service by calling WSAStartup() before using any
socket, otherwise it crashes in a similar way.
My concrete doubts are:
1. Do I have to link WS2_32.LIB by LIBS+=WS2_32.LIB in the .PRO file?
2. Do I have to WSAStartup() before using QFtp or Qt libraries take care
of all socket stuff?
3. Do I have to link another extra configuration to the .PRO file? The
only extra configuration it has is QT+=network
4. Do I need to include some extra windows libraries?
I am using VC++ express 8.0 with Qt 4.5.1
Thanks for your help!
--
Miguel Cardenas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100130/126ea109/attachment.html
More information about the Qt-interest-old
mailing list