At 01:57 PM 6/23/99 +0100, you wrote:
>I concluded it was caused by a static variable inside
>a static function. The smallest code snippet that caused an error was like
>this: static void handleEvent(EventPtr event) 
>{ 
>    static ControlPtr penDownCtl; 
>    penDownCtl = NULL; 
>} If I remove the static qualifier or the assignment, there's no error. Can
>anyone explain this?

Maybe you should look harder.  Seemingly 'impossible' bugs like this are
often a symptom of memory leaks/corruption.



Reply via email to