Re: corman-DLL from .NET?

Roger Corman <[email protected]> Fri, 27 Jun 2003 14:38:43 -0700
Newsgroups gmane.lisp.corman
Message-ID <[email protected]>
I have not tested corman lisp generated DLLs in .NET. I will try to run one from managed code and see if I can reproduce the problem. .NET is doing many of the same things the corman lisp runtime is doing: generational garbage collector, games with threads, thunks to foreign code, etc. I won't be too surprised to see some issue come up.

Roger

At 05:26 PM 6/2/2003 +0000, you wrote:
>I have the following sample-DLL code, which works fine when called  
>from a delphi-enviroment. Now I want to try it from a .NET-enviroment 
>where I import the DLL as unmanaged code.
>
>(ct:defun-dll-export-c-function (hpwtest "testlisp") ((str (:char *)))
>        "char* testlisp()"
>        (let ((test nil)))
>        (if (setq test(ignore-errors(eval(read-from-string (ct:c-
>string-to-lisp-string str)))))
>        (ct:lisp-string-to-c-string test)
>        (ct:lisp-string-to-c-string "ERROR")))
>
>
>I called it first by sending this string:
>(setq a "Test1" b "Test2" c "Test3")
>
>In the second and all subsequent calls I send this string:
>(concatenate 'string (eval a)" "(eval b)" "(eval c))
>
>In .NET it works fine for 10-20 calls then I get an error:
>
>System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen 
>Ausnahmefehler verursacht. ---> System.NullReferenceException: Der 
>Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
>
>Has anyone successfully called DLL from .NET?
>
>Hans-Peter
>
>
>
>
>To unsubscribe from this group, send an email to:
>[email protected]
>
> 
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Looking for the latest Free IT White Papers?
Visit SearchNetworking.com to access over 500 white papers.
Get instant access at SearchNetworking.com Today
http://us.click.yahoo.com/8lAzoD/OLNGAA/witMAA/SyjtlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/