Well as already noted I've code that does what you want if you want to do it in the vm.
via http://www.smalltalkconsulting.com/squeak.html
look on my idisk, or ftp site (I think) in the experimental folder, then the MessageLoggingVM folder.
David T Lewis also gave me code to enable the use of SIGNALS via OSProcess plugin to let you use the unix signal logic to turn on/off tracing and modify what it was doing.
On Jun 14, 2007, at 9:06 AM, André Wendt wrote:
Bert Freudenberg schrieb:
On Jun 14, 2007, at 16:08 , André Wendt wrote:
Bert Freudenberg schrieb:
On Jun 14, 2007, at 14:31 , André Wendt wrote:
That means I have to open a file upon initialization and write the file at each send. There's no other way than to do that in the Interpreter, as far as I can see.
What about fopen()?
Do you mean something like
f := self cCode: 'fopen(logFile, "a")'. ??
sure
I could do that (and it works), but only until I encounter the corresponding fwrite() call. Something along the lines of
self cCode: 'fwrite("asdf", 4, 1, self sendProfile)'.
of course won't work, and then I'd still have to somehow mix my variables into the C code. That's where it starts getting nasty again.
Any suggestions?
Thanks, André
-- ======================================================================== === John M. McIntosh johnmci@smalltalkconsulting.com Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===