[Xitami-Dev] xitami (smt) in a multi-threaded windows program

Thomas Burghardt xitami-dev@lists.xitami.org
Mon, 21 Jul 2003 07:34:31 +0200


sorry, but if you take the xitami-xinwin-project, with the changed C++
options (now  Multithreaded
library), the xitami will not run well. Better solution: running the xitami
in a single-threaded dll but it will work only fine, if you  access the
xitami only from one 'Interface-Thread'

With best reagards
> > Institute of Regional Geography
> > Thomas Burghardt
> > Leipzig
> > Germany
> > t_burghardt@ifl-leipzig.de


.


----- Original Message -----
From: "Shivakumar Gopalakrishnan" <g_skumar@yahoo.com>
To: <xitami-dev@lists.xitami.org>
Sent: Friday, July 18, 2003 11:08 PM
Subject: Re: [Xitami-Dev] xitami (smt) in a multi-threaded windows program


> Hi
>
> I found this easier method but it will work ONLY IF
> you are not accessing smt/sfl functions simultaneously
> from multiple threads. Given the warning it has worked
> fine with my windows programs.
>
> What I do is creat another configuration in VC++
> called MultiThreaded Debug/Release in libsfl project
> and change the C++ options to use the Multithreaded
> library.
>
> I rebuild the project with the new configuration and
> use it in my windows programs without any problems.
>
> Optional Advanced Tip: I also create similarly named
> configurations in my windows VC++ project and make it
> dependent on the libsfl and libsmt project (You have
> to insert the libsfl and libsmt project into your
> windows project first) . This way the correct
> (debug/release) library gets automatically linked with
> my windows program. Also any changes in the libsfl or
> libsmt code would automatically force relinking in the
> windows program.
>
> Hope this helps.
>
> Shivakumar Gopalakrishnan
>
> --- xitami-dev-request@lists.xitami.org wrote:
> > Send Xitami-Dev mailing list submissions to
> > xitami-dev@lists.xitami.org
> >
> > To subscribe or unsubscribe via the World Wide Web,
> > visit
> > http://lists.xitami.org/mailman/listinfo/xitami-dev
> > or, via email, send a message with subject or body
> > 'help' to
> > xitami-dev-request@lists.xitami.org
> >
> > You can reach the person managing the list at
> > xitami-dev-admin@lists.xitami.org
> >
> > When replying, please edit your Subject line so it
> > is more specific
> > than "Re: Contents of Xitami-Dev digest..."
> >
> >
> > Today's Topics:
> >
> >    1. xitami (smt) in a multi-threaded windows
> > program (linker option \MT) (Thomas Burghardt)
> >    2. RE: xitami (smt) in a multi-threaded windows
> > program (linker option \MT) (Angus Lord)
> >    3. SMT 3.0 sockets on Windows XP fail
> > (=?iso-8859-1?Q?Rafael_Cano_P=E9rez?=)
> >
> > --__--__--
> >
> > Message: 1
> > From: "Thomas Burghardt"
> > <thomas.burghardt@onlinehome.de>
> > To: <xitami-dev@lists.xitami.org>
> > Date: Thu, 17 Jul 2003 11:33:46 +0200
> > Organization: Worms & Partner
> > Subject: [Xitami-Dev] xitami (smt) in a
> > multi-threaded windows program (linker option \MT)
> > Reply-To: xitami-dev@lists.xitami.org
> >
> > This is a multi-part message in MIME format.
> >
> > ------=_NextPart_000_001A_01C34C57.489E5E70
> > Content-Type: text/plain;
> > charset="iso-8859-1"
> > Content-Transfer-Encoding: quoted-printable
> >
> > Dear programmers,
> > we would like to use the xitami (with smt)
> > implementation in a =
> > multithreading windows program (compile with VC++
> > and the \MT option).
> > but we still discovered, that smt only run with the
> > singlethreaded =
> > runtime libraries.
> > Is there any solution to link our program with the
> > multithreading =
> > runtime libraries?
> > For example build the xitami as a dynamic link
> > library (dll) with single =
> > threaded!
> >
> > With best regards
> >
> > Institute of Regional Geography
> > Thomas Burghardt
> > Leipzig
> > Germany
> > t_burghardt@ifl-leipzig.de
> >
>
>
> --
> Xitami-Dev -- Xitami Development Mailing List
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami-dev