From: | Paul Qureshi |
Date: | 7 Sep 2001 at 17:19:49 |
Subject: | [amiga-c] VB int problem (was Re: Help needed with random crashing problem) |
Hi guys.
Well, I tracked down the problem to my vertical blank interrupt. I can't
figure it out though, so I'm going to rewrite it in assembler or find
another way to do volume control.
Anyone got any ideas why a vb int written in Storm C might fail? I have
__interrupt and __saveds, and I return(0) at the end too.
To answer Paul Hills questions:
> Does it work when the car is stationary?
I removed it from the car and ran it from the mains, and it still had
the problem :(
> Have you tried putting lots of debug statements in the code?
Yeah, I have. Unfortunatly, they didn't help much, as it was the
interrupt that was causing the problem.
> I normally stick tons of kprintf()s in the code until I've narrowed it
> down to where the fault is. This way I can use either Sushi or a
> serial terminal to monitor what's going on. kprintf is in debug.lib
> BTW.
I was just using printf() since the program uses the serial port and
there is no stdio output anyway.
> Alternatively, have you tried running it in a monitor (Monam, AMon,
> ...)?
Eventually I found the problem by simply disabling the interrupt. Quite
why this would stop the A1200 crashing but not make any difference on my
A4000 is a mystery.
> I just thought. It's not a something as silly as a stack problem?
Tried that, it seems there is no stack leakage or over use...
Thanks,
Paul
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Do you need to encrypt all your online transactions? Secure corporate intranets? Authenticate your Web sites? Whatever
security your site needs, you'll find the perfect solution here!
http://us.click.yahoo.com/wOMkGD/Q56CAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/