I have a strange problem, and I was wondering if someone else has run into this as well.
I have a class that executes an NSTask. Each time I want to run an NSTask, I create a new instance of that class. Everything works as it is suppose to do. The output is as expected. There is no memory leak that I am aware of. I have stepped through the routines in question many times, the flow is what it should be.
An new instance of this class is created through some interface button, and each time I start it once or twice, it runs fine.
But the thing is, If I click the button too many times (between 7 and 15) after each other, the program will crash.
Did anyone experience something similar?
I have a class that executes an NSTask. Each time I want to run an NSTask, I create a new instance of that class. Everything works as it is suppose to do. The output is as expected. There is no memory leak that I am aware of. I have stepped through the routines in question many times, the flow is what it should be.
An new instance of this class is created through some interface button, and each time I start it once or twice, it runs fine.
But the thing is, If I click the button too many times (between 7 and 15) after each other, the program will crash.
Did anyone experience something similar?