flat assembler
Message board for the users of flat assembler.

Index > Windows > Code does not work under 64 bit Vista

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
sinsi



Joined: 10 Aug 2007
Posts: 707
Location: Adelaide
sinsi
Code:
FireThread: 
...
    sub ebp,12                 ; as 3 local variables 

    mov eax,nb 
    mov [ebp],eax 
    mov eax,hFShells 
    mov [ebp+4],eax 
...
    invoke FShell_render,[ebp+4],[ebp] 
    

You use ebp but I can't see it initialised beforehand.


I get an access violation in FShell_render
Code:
    cmovz edx,ecx 
    mov edx,[edx+ebx*4]  <<<<<access violation with ebx=004dxxxx
     
Post 07 Jul 2009, 02:18
View user's profile Send private message Reply with quote
Bicyclist



Joined: 06 Jul 2009
Posts: 18
Bicyclist
Thanks.

I did not write the code and there is a lot that I do not understand.

I did change SetThreadPriority to a lower value to run on my .386 system that is running XP Pro on a 733 Mhz processor.

Even if it can't be fixed to run on Vista, I would be curious as to why.

I tried another program that the author wrote.

It starts in a small window and runs fine.

If the window is enlarged it crashes. Smile
Post 07 Jul 2009, 03:45
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
The fireworks work under Server 2003 x64 and even when the window is resized.
When it doesn't work on Vista x64 then probably there is some cutting of corners going on. ESP not properly aligned? XMM0 not cleared or cleared where it should have or shouldn't have been cleared. Only guessing here.
Post 07 Jul 2009, 04:22
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
sinsi



Joined: 10 Aug 2007
Posts: 707
Location: Adelaide
sinsi
I should mention that I tested it on win7 rc x64 (vista2 as far as I'm concerned Laughing)
Post 07 Jul 2009, 04:48
View user's profile Send private message Reply with quote
Bicyclist



Joined: 06 Jul 2009
Posts: 18
Bicyclist
Madis731 wrote:
The fireworks work under Server 2003 x64 and even when the window is resized.
When it doesn't work on Vista x64 then probably there is some cutting of corners going on. ESP not properly aligned? XMM0 not cleared or cleared where it should have or shouldn't have been cleared. Only guessing here.


Thanks for the feedback.

I will put in some comments into the source code.
Post 07 Jul 2009, 09:59
View user's profile Send private message Reply with quote
Bicyclist



Joined: 06 Jul 2009
Posts: 18
Bicyclist
sinsi wrote:
I should mention that I tested it on win7 rc x64 (vista2 as far as I'm concerned Laughing)


How did it run?

I used Windbg, FreeIDA, and Ollydbg 2.0.

I think I will read up on setting some breakpoints or linking it with debug info turned on.

I will also see if Vista has an Event Viewer.

It seems comical.
The program was written using Microsoft products. Smile
(Masm 6.14)
Post 07 Jul 2009, 10:15
View user's profile Send private message Reply with quote
Bicyclist



Joined: 06 Jul 2009
Posts: 18
Bicyclist
bitRAKE wrote:
Works fine in WinXP 64-bit (unless I change the window size). I'm familiar with this program. First thought is possible Heap size too small. Then check threading for possible conflict. I like his spiral program, too! Modern processors run these programs WAY too fast, imho.

(Looks like there is a new version than you are using as well?
Or you changed it?)


It's funny how things work out some time.

I decided to go from Masm 6.14 to 8.0 and it told me "invalid instruction operands" for some of the lines of code.

After some searches, I found that all it took were a few additions of dword ptr. One of the lines that I changed is commented with the change made.
Post 27 Jul 2009, 23:59
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
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
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.