On 11/02/2010 02:20 PM, Balog Pal wrote:
> "DeMarcus" <>
>>>> How do you detect and handle invalid pointers to avoid segmentation
>>>> fault?
>>>
>>> I don't; I try to design my code so they aren't generated.
>
> Indeed.
>>
>> Yes, I agree, but when dealing with asynchronous calls from different
>> threads there is a compromise in complexity. To make simple callbacks
>> work from other threads it would be cumbersome in my current situation
>> to introduce a whole modular framework.
>
> The wisdom goes, good work takes time, bad work takes much more time.
>
I know. I'll do the best of the situation.
> You want to evade sensble design and its proper implementation to
> supposedly save work. You're in a huge company with that same idea.
> Maybe you want to join the other side that sees the folly.
>
> Also i would not advide to mess with threads before you learnt how to
> shell out a correct thing in ST.
>
What's ST?
> If you're really stuck with the provided pointer idea, use Java or some
> alike language. With C/C++ you'll just blow up stuff.
Hehe. Wish me luck.