 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Milenko Mitrovic Guest
|
Posted: Fri Mar 18, 2005 3:24 pm Post subject: FastMove with XP SP2-DES enabled |
|
|
Hi,
on one of the Machines i was working, i was wondering why one of my
Audio Apps wasn't working. The Machine has one of the newer P4 w/ SSE3.
After some Debugging i figured out that the call to
Move(SrcProc^, NewMove, SizeOf(NewMove))
from John O'Harrows FastMove.pas (the one from Dennis' Page) fails.
There is no crash, no Exception .. nothing. The Program just terminates
during initialization without saying anything. It took a while until i
asked myself "Could it be the DES (Data Execution Prevention) of Windows
XP/SP2 ?". So i disabled it by adding /noexecute=AlwaysOff to the
boot.ini and it started to work.
This Move does work with DEP enabled on my Athlon XP System and on my
Pentium M Notebook, only the P4 System prevents it.
oh and, (i forgot) while debugging i wasn't even able to check if
SrcProc is NULL "if Assigned(SrcProc) then ...". This check was enough
to make Windows(?) terminate the App.
Anyone an idea how to workarond this ?
Regards
Milenko Mitrovic
|
|
| Back to top |
|
 |
Avatar Zondertau Guest
|
Posted: Fri Mar 18, 2005 4:13 pm Post subject: Re: FastMove with XP SP2-DES enabled |
|
|
| Quote: | on one of the Machines i was working, i was wondering why one of my
Audio Apps wasn't working. The Machine has one of the newer P4 w/
SSE3. After some Debugging i figured out that the call to
Move(SrcProc^, NewMove, SizeOf(NewMove))
from John O'Harrows FastMove.pas (the one from Dennis' Page) fails.
There is no crash, no Exception .. nothing. The Program just
terminates during initialization without saying anything. It took a
while until i asked myself "Could it be the DES (Data Execution
Prevention) of Windows XP/SP2 ?". So i disabled it by adding
/noexecute=AlwaysOff to the boot.ini and it started to work.
This Move does work with DEP enabled on my Athlon XP System and on my
Pentium M Notebook, only the P4 System prevents it.
oh and, (i forgot) while debugging i wasn't even able to check if
SrcProc is NULL "if Assigned(SrcProc) then ...". This check was
enough to make Windows(?) terminate the App.
Anyone an idea how to workarond this ?
|
What happens if you use VirtualProtect to assign PAGE_EXECUTE_READWRITE
permission for that block of memory?
http://msdn.microsoft.com/library/en-us/memory/base/virtualprotect.asp
|
|
| Back to top |
|
 |
John O'Harrow Guest
|
Posted: Fri Mar 18, 2005 4:49 pm Post subject: Re: FastMove with XP SP2-DES enabled |
|
|
This bug was fixed in version 2.10 (the version on Dennis's page is still
1.60)
Version 2.3 (the latest released version) can be found in the attachments
newsgroup
regards,
John.
"Milenko Mitrovic" <dcoder (AT) dsp-worx (DOT) de> wrote
| Quote: | Hi,
on one of the Machines i was working, i was wondering why one of my Audio
Apps wasn't working. The Machine has one of the newer P4 w/ SSE3. After
some Debugging i figured out that the call to
Move(SrcProc^, NewMove, SizeOf(NewMove))
from John O'Harrows FastMove.pas (the one from Dennis' Page) fails. There
is no crash, no Exception .. nothing. The Program just terminates during
initialization without saying anything. It took a while until i asked
myself "Could it be the DES (Data Execution Prevention) of Windows XP/SP2
?". So i disabled it by adding /noexecute=AlwaysOff to the boot.ini and it
started to work.
This Move does work with DEP enabled on my Athlon XP System and on my
Pentium M Notebook, only the P4 System prevents it.
oh and, (i forgot) while debugging i wasn't even able to check if SrcProc
is NULL "if Assigned(SrcProc) then ...". This check was enough to make
Windows(?) terminate the App.
Anyone an idea how to workarond this ?
Regards
Milenko Mitrovic
|
|
|
| Back to top |
|
 |
Dennis Guest
|
Posted: Fri Mar 18, 2005 7:12 pm Post subject: Re: FastMove with XP SP2-DES enabled |
|
|
Hi John
| Quote: | This bug was fixed in version 2.10 (the version on Dennis's page is still
1.60)
|
I better ask my webmanager to fix that.
| Quote: | Version 2.3 (the latest released version) can be found in the attachments
newsgroup
|
OK
Regards
Dennis
|
|
| Back to top |
|
 |
Dennis Guest
|
Posted: Fri Mar 18, 2005 8:09 pm Post subject: Re: FastMove with XP SP2-DES enabled |
|
|
Correct version oploaded : http://dennishomepage.gugs-cats.dk/Libraries.htm
I'm very sorry.
"Milenko Mitrovic" <dcoder (AT) dsp-worx (DOT) de> wrote
| Quote: | Hi,
on one of the Machines i was working, i was wondering why one of my
Audio Apps wasn't working. The Machine has one of the newer P4 w/ SSE3.
After some Debugging i figured out that the call to
Move(SrcProc^, NewMove, SizeOf(NewMove))
from John O'Harrows FastMove.pas (the one from Dennis' Page) fails.
There is no crash, no Exception .. nothing. The Program just terminates
during initialization without saying anything. It took a while until i
asked myself "Could it be the DES (Data Execution Prevention) of Windows
XP/SP2 ?". So i disabled it by adding /noexecute=AlwaysOff to the
boot.ini and it started to work.
This Move does work with DEP enabled on my Athlon XP System and on my
Pentium M Notebook, only the P4 System prevents it.
oh and, (i forgot) while debugging i wasn't even able to check if
SrcProc is NULL "if Assigned(SrcProc) then ...". This check was enough
to make Windows(?) terminate the App.
Anyone an idea how to workarond this ?
Regards
Milenko Mitrovic
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|