[plt-scheme] Access Violation on C++ Builder 5

From: RxQVW (rxqvw at yahoo.co.jp)
Date: Tue Jun 15 14:26:48 EDT 2004

Thank you for your answer.

> At Tue, 15 Jun 2004 03:10:55 +0900, RxQVW wrote:
> > I am striving to embed MzScheme to my C++ Builder 5 
> > application on Windows 2000.  I compiled MzScheme and GC 
> > library from source (v207).
> Did you build using the files in plt/src/borland, or with your own
> projects?

I built library from .bpr files and also .mak files
in the directory plt/src/borland.
But I haven't succeeded in both ways.

> It may not be related, but one thing to try is using
> scheme_set_stack_base() to explicitly set the stack start and to make
> MzScheme explicitly register its static variables (in which case your
> embedding application will have to register its statics, too).

I wrote the following code.
But error happened at scheme_basic_env() function 
just the same as before.

#pragma hdrstop
#include "scheme.h"

int main(void)
    unsigned int data = 0;
    scheme_set_stack_base(&data, 1);
    Scheme_Env* env = scheme_basic_env();
    return 0;

Chihiro Kuraya

Do You Yahoo!?

Posted on the users mailing list.