[Mono-devel-list] Sample of remoting with PInvoke

yoros at wanadoo.es yoros at wanadoo.es
Sun Apr 20 20:41:31 EDT 2003


Hello,

I have this example of Remoting with PInvoke. You just must to untar the
sources and run "make". I've prepared the Makefile for mcs on linux...

You must to take care with this two points:

  - For running Client.exe, set the environment
    variable LD_LIBRARY_PATH to the path where is
    "libExternClass.so".
  - For running Server.exe, ensure that the library
    "libExeternClass.so" is not in LD_LIBRARY_PATH.

Good, when running the server, I have the following unespected messages:

** (./Server.exe:32498): WARNING **: Failed to load library
libExternClass.so (ExternClass): libExternClass.so: cannot open shared
object file: No such file or directory

** (./Server.exe:32498): WARNING **: Failed to load library
libExternClass.so (ExternClass): libExternClass.so: cannot open shared
object file: No such file or directory

Unhandled Exception: System.NullReferenceException: A null value was
found where an object instance was required

This messages should not be in the server output because the server has
nothing to do with PInvoke. The client never ends. Do anybody knows
what's happening?

I tried to change Executable with IExecutable and receive in "Info" only
the interface but it's bad too. I get the same error.

If anybody knows something that can help me, post it, please.

Regards,

    Pedro

-- 
Pedro Martínez Juliá
\  yoros at terra.es
)|    yoros at wanadoo.es
/        http://yoros.cjb.net
Socio HispaLinux #311
Usuario Linux #275438 - http://counter.li.org
GnuPG public information:  pub  1024D/74F1D3AC
Key fingerprint = 8431 7B47 D2B4 5A46 5F8E  534F 588B E285 74F1 D3AC
-------------- next part --------------
‹  <£> íY]oÛ6Í«õ+.?Hɶ,ÀÞ†¥NºHÚÂ1PmQ(4mq“Iƒ?CþûHJ²$ÇŽ³Îu±N÷Áúàå??Èsî‘<ÄBð”IB'gG_Ç<¯í
A Žžž>z~»mŽ™
ya'ð:­ Õ¹ßìøá_i<›q€£%ãL<ë‡ùsíÿQ–×ÿòAbNûI$„‹ö—Ãó=¯“®÷Æõ÷?0_?ô[Ê?hzÍ#ðö7„íö?_ÿEÉ|„áG!G„¹ñÏ–µ`dé^?|Àh.18Çð—Õ˜qBåرsJÕ~?ëºöqÏz??õ4jûB«àÿóæ.Úó>7ø÷?mø÷?Ö:þÛ­°Uãÿ6È·K!ñ?g•¯\
rI?ØÍ·ÇŽf·G”âD?ÔÏ
¢Yϲfó»„ @ºêÀ%•|ùŽ)šQ|£'mSK$ÕÁðÒMD(8B**š|øŸÃM>£‚%Ø}ωÄׄbÇîs
é” 2eY3Æj4Š[€bø	(?/¹9íVÓ7~Âð„?©éÀzØìZ#‰ ,ÜÜ7‹bãvEÇˆþI3ëkg[?›ˆ‹8JO÷Y%Ëé*[æéh¯°3ÇS»y€£‘	lî¢Ø?•lv­G©IÝ¡ó$Ñ-VÍëß¿­é?]í£;µIöYvé¿v;(ø¿•ê¿f­ÿb/àÿ+ªø‹Ír’yBÙ«M]ÈèÕr€ÇoïþÀ?Âã™°,KʍüšÊËœæ
7hæ*JÕÉ{|?H’«éŒqéØ¥÷ûø“ѱ‹H
!«+Ø4ÃFÙÛûÎY°‚ÿ~B0•‡Ö^ØîøRý5þaÿ@ÿ­	·?ˆÁu2IwàsÚo“ôÛ¡å?/UfŽ?8†s$5_0îþŠeÊjʱáÈå³qê?Ô–D³îÙYÂP”ÄLÈ®–g›%XAv?}?
‰i/q)~ÀÙLŠ›©b3]rºSnÿJÆUð¯g²wôï®ÿúeo
ÿŽÁ¿~%¬ñ «â¿
F
­5ýBUP?qAºW ÖôÊJ³nR»8wuß°ûjA_1?ºË«ðÀ±œ«’lBÃãV
 N1iVuâ–å@ùFÓ©ßmÊVÁÿMô'
“ï9Çüû­°Y|ÿïÿÍNýýç fEIÒÍÊ®«kNö
PŸ&ä®ü€`VãŒâü ö&±€1ã cƒ?
0Â(°±¹¡e×^yœÂkå˳¯ÇEÒ
õ&]ÎèT5”;,"Nʯ/>__?œ~ÿüî|øHf:Î"Ã}Œ9"ª]?ÚO&òÑv·«x'j<b®BÊ8Jǧ"ñˆ/7&ÀÕj
@™TZb}Ì«Ü–U<ƒÕ" ”xõ±ò>n5?êÖ)+/ÖŽ.pÊ·	/Ë*?Ù
Õ‡ß
©K›cG—gS?Y.Tþz²„àTU
ŽG:ï“kþJpD»VƒO_?—¿5òj«­¶Új«­¶Új«íðö7Ç
·Î (  


More information about the Mono-devel-list mailing list