[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] How can evnt_multi cause an illegal access?



Sorry guys, you can't fool the compiler :)

#define evnt_multi(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v) \
                                                                                mt_evnt_multi(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,aes_global)

which leads to:

short   mt_evnt_multi  (short Type, short Clicks, short WhichButton, short WhichState,
                                                short EnterExit1, short In1X, short In1Y, short In1W, short In1H,
                                                short EnterExit2, short In2X, short In2Y, short In2W, short In2H,
                                                short MesagBuf[], unsigned long Interval, short *OutX, short *OutY,
                                                short *ButtonState, short *KeyState, short *Key, short *ReturnCount, short *global_aes);

I'm afraid that it's something nasty. Since the faulting address is PC, I assume stack is corrupted somehow :(

Anyway, thanks for the tip about _fast version, I had no idea.

--
MiKRO / Mystic Bytes
http://mikro.atari.org