[Xitami-Dev] xitami (smt) in a multi-threaded windows program (linker option \MT)

Angus Lord xitami-dev@lists.xitami.org
Thu, 17 Jul 2003 12:04:20 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_01CB_01C34C5B.8EA24540
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

I use the Xitami engine as a single threaded COM dll, called from a
multithreaded application. You just have to be careful with which threads
access the COM object. Generally, I keep all comunication with the COM
object within a single thread and use the other threads for the user
interface etc. all with liberal use of the PostThreadMessage API call.
 
Angus Lord
 
Technical Director
Moviva Ltd.
 

-----Original Message-----
From: xitami-dev-admin@lists.xitami.org
[mailto:xitami-dev-admin@lists.xitami.org] On Behalf Of Thomas Burghardt
Sent: 17 July 2003 11:34
To: xitami-dev@lists.xitami.org
Subject: [Xitami-Dev] xitami (smt) in a multi-threaded windows program
(linker option \MT)



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
 
 


------=_NextPart_000_01CB_01C34C5B.8EA24540
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D874100010-17072003><FONT face=3DArial color=3D#0000ff =
size=3D2>I use=20
the Xitami engine as a single threaded COM dll, called from&nbsp;a =
multithreaded=20
application. You just have to be careful with which threads access the =
COM=20
object. Generally, I keep all comunication with the COM object within a =
single=20
thread and use the other threads for the user interface etc.&nbsp;all=20
with&nbsp;liberal use of the PostThreadMessage API =
call.</FONT></SPAN></DIV>
<DIV><SPAN class=3D874100010-17072003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D874100010-17072003><FONT face=3DArial color=3D#0000ff =
size=3D2>Angus=20
Lord</FONT></SPAN></DIV>
<DIV><SPAN class=3D874100010-17072003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D874100010-17072003><FONT face=3DArial color=3D#0000ff =

size=3D2>Technical Director</FONT></SPAN></DIV>
<DIV><SPAN class=3D874100010-17072003><FONT face=3DArial color=3D#0000ff =
size=3D2>Moviva=20
Ltd.</FONT></SPAN></DIV>
<DIV><SPAN class=3D874100010-17072003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B>=20
  xitami-dev-admin@lists.xitami.org =
[mailto:xitami-dev-admin@lists.xitami.org]=20
  <B>On Behalf Of </B>Thomas Burghardt<BR><B>Sent:</B> 17 July 2003=20
  11:34<BR><B>To:</B> xitami-dev@lists.xitami.org<BR><B>Subject:</B>=20
  [Xitami-Dev] xitami (smt) in a multi-threaded windows program (linker =
option=20
  \MT)<BR><BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>
  <DIV><FONT face=3DArial size=3D2>Dear programmers,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>we would like to use the xitami (with =
smt)=20
  implementation in a multithreading windows program (compile with VC++ =
and the=20
  \MT option).</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>but we still discovered, that smt =
only run with=20
  the&nbsp;singlethreaded runtime libraries.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Is there any&nbsp;solution to link =
our program=20
  with the multithreading runtime libraries?</FONT></DIV>
  <DIV>For example build the xitami as a dynamic link library (dll) with =
single=20
  threaded!</DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>With best regards</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Institute of Regional =
Geography</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Thomas Burghardt</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Leipzig</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Germany</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><A=20
  =
href=3D"mailto:t_burghardt@ifl-leipzig.de">t_burghardt@ifl-leipzig.de</A>=
</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV></FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_01CB_01C34C5B.8EA24540--