BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FastMove with XP SP2-DES enabled

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM
View previous topic :: View next topic  
Author Message
Milenko Mitrovic
Guest





PostPosted: Fri Mar 18, 2005 3:24 pm    Post subject: FastMove with XP SP2-DES enabled Reply with 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
Avatar Zondertau
Guest





PostPosted: Fri Mar 18, 2005 4:13 pm    Post subject: Re: FastMove with XP SP2-DES enabled Reply with quote



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





PostPosted: Fri Mar 18, 2005 4:49 pm    Post subject: Re: FastMove with XP SP2-DES enabled Reply with quote



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





PostPosted: Fri Mar 18, 2005 7:12 pm    Post subject: Re: FastMove with XP SP2-DES enabled Reply with quote

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

Quote:
regards,
John.

Regards
Dennis



Back to top
Dennis
Guest





PostPosted: Fri Mar 18, 2005 8:09 pm    Post subject: Re: FastMove with XP SP2-DES enabled Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.