🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages Started by Eduardo Jauch Sun, 25 Feb 2007 14:47
Thread termination
#2488
Author: Eduardo Jauch
Date: Sun, 25 Feb 2007 14:47
9 lines
985 bytes
Hi!

To free any allocated resources dynamic allocated in my thread, how must 
I do?

By using the OnTerminate (will be the read or the write?)
Or is possible do this on the destructor?

Thanks :)
Re: Thread termination
#2489
Author: Clayton Arends
Date: Sun, 25 Feb 2007 16:32
16 lines
1525 bytes
> To free any allocated resources dynamic allocated in my thread, how must I 
> do?

You free them like any other resource or memory allocation.  You can free 
them in the destructor, at the end of your Execute() method, using smart 
pointers, etc.

> By using the OnTerminate (will be the read or the write?)

I'm not sure what you mean by this.

If this doesn't answer your question then can you elaborate on your exact 
problem?  Please include an example using code or psuedocode to make your 
issue clearer.

- Clayton 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads