Sempre nell'ambito del passaggio di parametri ad una funzione nel mio programma ho definito una struttura edl tipo :
typedef struct TipoIncrocio {
int EStack[DIMSTACK];
int DStack[DIMSTACK];
} TIPOINCROCIO ;
e una funzione
void InitCross ( TIPOINCROCIO** , int* , int );
void InitCross ( TIPOINCROCIO **Incroci , int* Priority , int NUM_INCROCI)
{
int Index;
for ( Index = 0 ; Index <= NUM_INCROCI ; Index++ )
{
InitStack ( (*Incroci[Index]).EStack );
InitStack ( (*Incroci[Index]).DStack );
}
*Priority = 1;
}
Apparentemente il debug non mi da errori ma alla fine windows mi torna l'errore classico perchè vado a toccare un area di memoria nn assgenatami qualcuno saprebbe dirmi come modificare prototipo e funzione per far girare correttamente il programma ?