(unknown charset) Re: Using Oberon compiler for WinApi.

From: (unknown charset) Bernhard Treutwein <"Bernhard>
Date: Thu, 4 Apr 2002 20:26:36 +0200

----boundary-LibPST-iamunique-270016090_-_-
Content-type: text/plain

Hi Alexandre,

In the "Platform Specific Issues" you find answers to
this question:

Using NEW and garbage collection in your applications

If you are calling NEW in your application and thereby implicitly
use the garbage collector, you must link the Kernel into the
application. The NEW-procedure is implemented in the kernel,
the compiler just generates the code to call this procedure. So
every module using NEW has a hidden import of the kernel.
Don't call WinApi.ExitProcess directly when "importing" the
kernel, call Kernel.Quit with parameter 0 instead to assure
that occupied system resources get properly released before
the application is terminated.

Programs don't need to call the garbage collector explicitly.
If the NEW-procedure cannot satisfy a request for heap
space, it calls the garbage collector internally before allocating
a new heap block from the Windows Memory Manager.
The garbage collector marks pointers in stack frames and is
able to run anytime.

regards
--
    BdT{([at]})nowhere.xy----- Original Message -----
From: "Alexandre Grouchine" <GrushinA{([at]})nowhere.xyTo: <blackbox{([at]})nowhere.xySent: Sunday, March 31, 2002 2:56 AM
Subject: Using Oberon compiler for WinApi.
> Creetings BlackBox Programmers.
> If I use BB for compiling ang linking exe file, using WinApi, will the
created
> application use Automated Garbage collector and other procedures of BB? I
mean,
> if I create for example Simple.exe from samples and in the main body of it
I
> call my own module and/or its procedures, will it work as stable and fast
as it
> does in the BB framework? That is the question, I can't answer to myself.
> Best Regards, Alex.
> ----
>   http://www.rambler.ru
> --------------------------------------------
>
> To unsubscribe from this mailing list, send a message containing the word
"unsubscribe" to:
>    blackbox-request{([at]})nowhere.xy>
> To get a list of valid e-mail commands and instructions on their usage,
send a message containing the word "help" to the above address.
>
> Send any problem reports or questions related to this email list to the
list owner at
>    owner-blackbox{([at]})nowhere.xy>
> Current posting policy:
>
> a) To post you should use the same address by which you are subscribed to
the mailing list. That way, the list server will recognize you as subscriber
and forward your posting immediately, without creating any overhead.
>
> b) If, for some reason, you cannot post from the address, by which you are
subscribed, your message will be moderated to avoid spam. Please understand
that moderation will often cause some delay, in particular over weekends or
holydays.
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xyTo get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xyCurrent posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-270016090_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTFcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhpIEFsZXhhbmRyZSxccGFyDQpccGFyDQpJbiB0
aGUgIlBsYXRmb3JtIFNwZWNpZmljIElzc3VlcyIgeW91IGZpbmQgYW5zd2VycyB0b1xwYXINCnRo
aXMgcXVlc3Rpb246XHBhcg0KXHBhcg0KVXNpbmcgTkVXIGFuZCBnYXJiYWdlIGNvbGxlY3Rpb24g
aW4geW91ciBhcHBsaWNhdGlvbnNccGFyDQpccGFyDQpJZiB5b3UgYXJlIGNhbGxpbmcgTkVXIGlu
IHlvdXIgYXBwbGljYXRpb24gYW5kIHRoZXJlYnkgaW1wbGljaXRseVx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