Hi just created this code to ADD/CHANGE one tooltype (IMAGEPATH) and want to share/show if it's well done or it's so "bad coded (TM)" or maybe if there is an easier way to do it:
I want to redirect output from a child process to my own little colorful console listbrowser. My main eventloop is driven by signals and a IExec->Wait statement. Now, the most straightforward method to redirect process output, I guess, is to create two PIPE: filehandles and hand over the write end to the process when it is created. Now the question is, how do I know, when stuff has been written to my pipe? I have tried to allocate a dos notify request (with AllocDosObject), but it doesn't seem to work. I was thinking of bsdsocket WaitSelect, but I don't think it works with pipes.
I got a support request from a user this morning.
He installed the same code on two systems, and found that the aiss images only worked one one of them. After some investigation, it turns out that one was assigned tbimages: and the other was assigned TBImages:
So apparently my code only finds the one that uses the same case.
Considering that there are 256 possible ways to mix capitalization of TbImAgEs:, is there a better way to fix this than trying to guess the capitalization used?
Is there a way to set the stacksize from within a process? I need a way to set the stacksize other than stack cookie, because I need it to be set from within a shared object (adding a stack cookie to the shared object doesn't work). I have tried
Both Project Icons and Tool Icons have the "Start From" chooser that can be set to Workbench or Shell; I'm having a little trouble with their interaction.
My program is designed to work relatively transparently w/r/t the CLI Args and WB ToolTypes, and mostly it does.
This works ok when both Proj Icon and Tool Icon are both set to "Start From Workbench", or both to "Start From Shell", or if the Proj Icon is "Start From Shell" and the Tool Icon is "Start From Workbench".