1

bon comme vous le savez, je prog civ2, et apres line 1111 emulator,, g une erreur inédite !!
elle s'appellle "privilege violation" et c tjs qd je quitte le prgm que g ça
qu'est-ce que c'est que cette ereur ???
avatar
納 豆パワー!
I becamed a natto!!!1!one!

2

je sais pas comment tu t'es débrouillé pour la faire apparaitre mais t très fort sur ce coup là grin
*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & sabrina

3

je sais ! je les collectionne !grinpicol
avatar
納 豆パワー!
I becamed a natto!!!1!one!

4

void randommap(void)
{
int a,b,x,y;
float sea;
//int (*liste)[2]=NULL;
char buf[4];
sea=0.5;
z=0;
ClearGrayScreen();
DrawGrayStrExt(0,50,"Percent of sea",A_REPLACE | A_SHADOWED | A_CENTERED,F_8x10);
while(!(key_apps))
{
attend(10);
if (z==0)DrawGrayStrExt(0,80," lake ",A_REPLACE | A_SHADOWED | A_CENTERED,F_6x8);
if (z==1)DrawGrayStrExt(0,80," sea ",A_REPLACE | A_SHADOWED | A_CENTERED,F_6x8);
if (z==2)DrawGrayStrExt(0,80,"ocean ",A_REPLACE | A_SHADOWED | A_CENTERED,F_6x8);
sprintf(buf," %f ",(sea*100));
DrawGrayStrExt(0,70,buf,A_REPLACE | A_SHADOWED | A_CENTERED,F_6x8);
if(key_up && sea!=0.99) sea+=0.01;
if (key_down && sea!=0.01) sea-=0.01;
if(key_left && z!=0) z--;
if (key_right && z!=2) z++;
}
ClearGrayScreen();
DrawGrayStrExt(0,60,"Loading MAP",A_REPLACE | A_SHADOWED | A_CENTERED,F_8x10); 
m=sea*2000;
z=(z-1)*50;
if (z==0)z=20;
while (z==z)
{

sprintf(buf," %d ",m);
DrawGrayStrExt(0,70,buf,A_REPLACE | A_SHADOWED | A_CENTERED,F_6x8);
if(m==0)break;
do
{
x=random(50);
y=random(40);
} while(map[y][x]!=0);
map[y][x]=5;
m--;
if (random(z)==0)continue;
if(m==0)break;
map[y-1][x]=5;
m--;
if (random(z)==0)continue;
if(m==0)break;
map[y-1][x+1]=5;
m--;
if (random(z)==0)continue;
if(m==0)break;
map[y][x+1]=5;
m--;
if (random(z)==0)continue;
if(m==0)break;
map[y+1][x+1]=5;
m--;
if (random(z)==0)continue;
if(m==0)break;
map[y+1][x]=5;
m--;
if (random(z)==0)continue;
if(m==0)break;
map[y+1][x-1]=5;
m--;
if (random(z)==0)continue;
if(m==0)break;
map[y][x-1]=5;
m--;
if (random(z)==0)continue;
if(m==0)break;
map[y-1][x-1]=5;
m--;
if (random(z)==0)continue;
if(m==0)break;
//créer liste, dupliquer les 6 cases
}
for (a=0;a<50;a++){for(b=0;b<40;b++)if (map[b][a]==0)map[b][a]=random(3)+2;}
}


je sais que l'erreur se produit a cause de cette fonction mais pour savoir comment...fo que je teste ligne par lignerage
avatar
納 豆パワー!
I becamed a natto!!!1!one!

5

valà g corrigé, mais je veux savoir ce que signifie cette erreur !!roll
avatar
納 豆パワー!
I becamed a natto!!!1!one!

6

t'as du violer un privilège réservé aux ingénieurs ti tongue
*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & sabrina

7

lol en tt cas je suis privilégié d'avoir eu cette erreur
pas mal ta new signature vark
avatar
納 豆パワー!
I becamed a natto!!!1!one!

8

ah ca oui c un sacré privilège grin
Fiou.

9

et oui! mon vti en voit de ttes les couleurs
avatar
納 豆パワー!
I becamed a natto!!!1!one!

10

ma nouvelle signature a pas changé, g juste rajouté psykokwak ... mais j'en ai encore d'autres en réserve ... smile
*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & sabrina

11

ben oui c pour ce nouveau perso que je disait ça



1000 posts !!!!!!!!!!
avatar
納 豆パワー!
I becamed a natto!!!1!one!

12

toi aussi tu est fan de psykokwak ?
*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & sabrina

13

bah non mais je le trouve fandard

hum! et mon erreur alors c kwa ?
avatar
納 豆パワー!
I becamed a natto!!!1!one!

14

jcrois ke tlm s'en fout ...
Ms non jdeconne je cherche mais je trouve pas.
Fiou.

15

erf! ça peut etre instructif de savoir
avatar
納 豆パワー!
I becamed a natto!!!1!one!

16

privilege violation, c'est pas quand tu essaye d'utiliser des instructions en mode superviseur, alors que tu n'est qu'en mode utilisateur ?
Je sais plus où, mais je suis tombé sur de la doc la-dessus... Peut-être dans le guide de Jimmy Mardel pour l'ASM, pas sûr...
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

17

Voici un extrait concernant la "privilege violation" d'une doc sur "the exception vectors table" de Mathieu Lacage.

* Privilege violation: this happens when, in the user mode, a program
tries to execute a supervisor mode instruction.
supervisor inst are:
Stop
Reset
Rte
Move.w source,SR
and.w #data,SR
Eor.w #data,SR
Or.w #data,SR
move.l An,USP
move.l USP,An
You don' t need to bother about these instructions ( i have put all this
here just for documentation purposes ) : priviliege violation traps occur
when you haven' t set the S bit of the system byte and yo are trying to do
meddle so stuff in memory: it doesn' t happen often in game programmers...

en clair ca correspond à ce qu'a dit squale

18

Merci d'avoir apporté les détails que je ne pouvais préciser...
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

19

BEN moi j'utiliuse pas tt ça !!
je crois que l'erreur venait du fait que j'ecrivait sur un tableau hors de ses coordonnées, d'ailleurs j'avais aussi illegal instruction comme erreur de tps en tpssmile
avatar
納 豆パワー!
I becamed a natto!!!1!one!

20

tu les collectionnes les erreurs en sortie de prog ? wink
Fiou.

21

oui !!
c mon cauchemard !!
je teste le prog, je suis heureux car pas de probleme et qd je quitte....PAF!! errorgrin
avatar
納 豆パワー!
I becamed a natto!!!1!one!

22

c souvent pareil pour moi...
C'est encoire plus marrant à débugger quand ça plante pas pendant le prog, mais après :-)
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

23

ouaih c'est clair smile

24

ouais c souvent des erreurs connes donc c po trop dur a corrigerwink
avatar
納 豆パワー!
I becamed a natto!!!1!one!

25

C'est encore plus marrant quand c'est dur à corriger : c'est presque comme ça qu'on apprend le mieux !
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

26

C'est une erreur tout a fait courrante.
Site personnel
Site professionnel

msn / mail : racine.f(at)free.fr

27

en ASM, il parait que c'est courrant... Mais, En C, je ne l'ai eu qu'une ou 2 fois
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

28

ouais moi je connaissait pas ça.....mais bvon facile a corriger
avatar
納 豆パワー!
I becamed a natto!!!1!one!