Re: Message: 4211476 : JTC x DLL
"w w" <[email protected]> Wed, 09 Apr 2003 08:52:19 -0300
| Newsgroups | gmane.comp.lib.jtc |
|---|---|
| Message-ID | <[email protected]> |
<html><div style=3D'background-color:'><DIV> <P>Hi,</P> <P>i) I have created the dll with proper compiler flags /MD. This is= Ok with flags =B4ORBACUS=B4 and <FONT face=3DArial>'JTCThread'.</FONT><B= R><BR><FONT color=3D#000000 size=3D1><FONT size=3D3>ii) Warning occurrate= the "DLL" create:</FONT></FONT></P> <P><FONT color=3D#000000 size=3D1><FONT face=3D"Geneva, Arial, Sans-serif= " size=3D3>./src\Distrib.h(39) : warning C4275: non dll-interface class '= JTCThread' used as base for dll-interface class 'Distrib'</FONT></P> <P><FONT face=3D"Geneva, Arial, Sans-serif" size=3D3>C:\Ooc\include\JTC/T= hread.h(41) : see declaration of 'JTCThread'</FONT></P> <P><FONT face=3D"Geneva, Arial, Sans-serif" size=3D3>./src\Distrib.h(42) = : warning C4251: 'orb' : class 'OB::ObjVar<class CORBA::ORB>' needs= to have dll-interface to be used by clients of class 'Distrib'</FONT></P= > <P><FONT face=3D"Geneva, Arial, Sans-serif" size=3D3>iii) The execution "= main" program use my "DLL". The program crashes after an access= violation.</FONT></P><FONT face=3D"Geneva, Arial, Sans-serif" size=3D3> <P>Have I forgotten something?</P></FONT> <P><FONT face=3D"Geneva, Arial, Sans-serif" size=3D3>--------------------= -------------------------------------------------------</P></FONT></FONT>= </DIV> <DIV></DIV> <DIV></DIV>>From: Philipp Stadler <[email protected]> <DIV></DIV>>To: "w w" <[email protected]> <DIV></DIV>>Subject: Re: [JTC-Users] Message: 4211476 : JTC x DLL=20 <DIV></DIV>>Date: Wed, 09 Apr 2003 06:25:49 +0200=20 <DIV></DIV>>=20 <DIV></DIV>>Hi w w,=20 <DIV></DIV>>=20 <DIV></DIV>>as you see in the header of my mail this problem occured q= uite a=20 <DIV></DIV>>time ago... So don't accurately remember the solution, but= I think=20 <DIV></DIV>>it was a problem concerning the creation of the JThreads D= ll.=20 <DIV></DIV>>=20 <DIV></DIV>>My hints:=20 <DIV></DIV>>i) Check that you have created the dll with proper compile= r flags=20 <DIV></DIV>>(/MD or /MDd - for the Debug version).=20 <DIV></DIV>>=20 <DIV></DIV>>ii) The JThread Dll is created by adding a .def file which= is=20 <DIV></DIV>>created during compilation. This is accomplished by runnin= g a perl=20 <DIV></DIV>>script (\config\makedef.pl) on the dump of the import libr= ary. This=20 <DIV></DIV>>file shall be in the same directory as the import library.= Check=20 <DIV></DIV>>that this file is created and use. It should look like:=20 <DIV></DIV>>LIBRARY jtc200=20 <DIV></DIV>>EXPORTS=20 <DIV></DIV>> ?end@?$_Iosb@H@std@@2W4_Seekdir@12@B=20 <DIV></DIV>> ?cur@?$_Iosb@H@std@@2W4_Seekdir@12@B=20 <DIV></DIV>> ?beg@?$_Iosb@H@std@@2W4_Seekdir@12@B=20 <DIV></DIV>> ?binary@?$_Iosb@H@std@@2W4_Openmode@12@B=20 <DIV></DIV>> ?trunc@?$_Iosb@H@std@@2W4_Openmode@12@B=20 <DIV></DIV>> ?app@?$_Iosb@H@std@@2W4_Openmode@12@B=20 <DIV></DIV>> ?ate@?$_Iosb@H@std@@2W4_Openmode@12@B=20 <DIV></DIV>> .....=20 <DIV></DIV>>=20 <DIV></DIV>>Best regards, Philipp=20 <DIV></DIV> <DIV></DIV></div><br clear=3Dall><hr>MSN Messenger: converse com os seus = amigos online. <a href=3D"http://g.msn.com/8HMQBRBR/2746">Instale gr=E1t= is. Clique aqui. </a> Get 2 months FREE*. </html> _______________________________________________ JTC-Users Mailing List - [email protected] http://www.orbacus.com/mailman/listinfo/jtc-users Visit our support FAQ before you send a message. http://www.orbacus.com/faq/support.html