🚀 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 Brian Dumas Sat, 05 Apr 2003 05:30
Best method for IPC
#17361
Author: Brian Dumas
Date: Sat, 05 Apr 2003 05:30
12 lines
1379 bytes
I don't know if this is just a pipe dream, or if it can be done. I have a
BCB5 application. I want to be able to debug it in the IDE, and when I stop
at a breakpoint, start up some other process (or thread) that I can use to
help debug the application. I've toyed with using the Open Tools API, and
still might. I also have used shared memory routines, and although this
works fine, it is limited (can't "shared" STL classes).


Anyway, just looking for ideas.

Thanks, Brian
brian@kvdco.com
Re: Best method for IPC
#17362
Author: Ron Sommer
Date: Sat, 05 Apr 2003 09:01
30 lines
2470 bytes
> I don't know if this is just a pipe dream, or if it can be done. I have a
> BCB5 application. I want to be able to debug it in the IDE, and when I stop
> at a breakpoint, start up some other process (or thread) that I can use to
> help debug the application. I've toyed with using the Open Tools API, and
> still might. I also have used shared memory routines, and although this
> works fine, it is limited (can't "shared" STL classes).


I think that, when your program stops at a breakpoint, all its threads 
are stopped, so it wouldn't be able to actively take part in any IPC 
anymore. But maybe passive IPC, like shared memory, might work (yet I 
doubt that).

On the other hand, you can, of course, create an application for 
maintainability: If you have a number of values that you want to 
observe, simply make sure that any change to those values will be 
noticed by the respective property holder (such as the component), and 
that this change is propagated to a storage block that saves all 
properties you want to monitor.

This is also a simple method to create fault-tolerant software (at a 
very low level; don't expect to much from such a simple effort): Create 
recovery blocks regularly, and save all critical values into it. In case 
of an error, restore the actual properties' values from this block.

Storage and recovery blocks, can, of course, be made available via 
shared memory, or sent via messages, to an observer program.

Regards,
Ron Sommer
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