[plt-scheme] Help on a testing about CGC

From: Chongkai Zhu (u0476504 at utah.edu)
Date: Mon Sep 4 23:00:58 EDT 2006

Hi all,

Attached is a small PLT program. Would people please help testing it and report the result here with you platform information? Thanks.

The program consists of two modules. The base module is writen in C. To help compiling it, "installer.ss" is also attached. If you have a C compiler, load the installer and then run 

(pre-installer (current-directory))

should be enough. 

To do the testing, please load "mathematica.ss", run (MathKernel) first, and then test to see whether (current-mathlink) always return #<MathLink>.

Here is one of my test interaction:

Welcome to DrScheme, version 352.4.
Language: (module ...).
> (MathKernel)
#<MathLink>
> (current-mathlink)
#<MathLink>
> (current-mathlink)
#<MathLink>
> (current-mathlink)
7.4714817665179e-244
> 

Before each time you run (current-mathlink), please do GC enough time. I do this by hiting the "GC" buttom from DrScheme until the memory counter doesn't change (5-10 times).

Thanks.

Chongkai
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ml.c
URL: <http://lists.racket-lang.org/users/archive/attachments/20060904/83184b92/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mathematica.ss
Type: application/octet-stream
Size: 515 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20060904/83184b92/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: installer.ss
Type: application/octet-stream
Size: 426 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20060904/83184b92/attachment-0001.obj>

Posted on the users mailing list.