[so] [SO] [lab8] [Win] Eroare problema 3
Stefan Munteanu
stef8803 at yahoo.co.uk
Sun May 2 19:27:52 EEST 2010
Salut,
Cred ca s-a strecurat o greseala in urmatoarea functie:
static LONG CALLBACK access_violation(PEXCEPTION_POINTERS ExceptionInfo) {
DWORD old;
int page = (int)
((LPBYTE)ExceptionInfo->ExceptionRecord->ExceptionInformation[1] - p) / pageSize;
if (!(0 <= page && page < 3)) {
printf("wrong page number %d\n", page);
return EXCEPTION_CONTINUE_EXECUTION; // EXCEPTION_CONTINUE_SEARCH
}
// ...
return EXCEPTION_CONTINUE_EXECUTION;
}
Eroare este in secventa:
if (!(0 <= page && page < 3)) {
printf("wrong page number %d\n", page);
return EXCEPTION_CONTINUE_EXECUTION; // EXCEPTION_CONTINUE_SEARCH
}
In loc de EXCEPTION_CONTINUE_EXECUTION cred ca ar trebui intors EXCEPTION_CONTINUE_SEARCH
Stefan
________________________________
From: Stefan Munteanu <stef8803 at yahoo.co.uk>
To: Sisteme de Operare <so at cursuri.cs.pub.ro>
Sent: Sun, 2 May, 2010 18:55:46
Subject: Re: [so] [Tema1] Intarziere
Salut,
Reactivez topicul deoarece nu mi-a raspuns nimeni inca :)
Stefan
________________________________
From: Stefan Munteanu <stef8803 at yahoo.co.uk>
To: Sisteme de Operare <so at cursuri.cs.pub.ro>
Sent: Fri, 23 April, 2010 23:32:07
Subject: [so] [Tema1] Intarziere
Salut,
Am trimis tema1, varianta pe linux vineri, 09.04.2010, ora 23.35 si vad ca am o penalizare de 0.75 puncte pentru intarziere. Intelesesem ca se penalizeaza doar doua zile (01.04,02.04) si apoi in perioada 03.04-09.04 nu se mai aplica penalizari.
Gresesc undeva?
Multumesc,
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/lurker/list/so.html/attachments/20100502/0a1ecd19/attachment.htm>
More information about the so
mailing list