6 Replies - 1054 Views - Last Post: 29 June 2012 - 08:35 AM

#1 Latias  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 73
  • Joined: 28-June 12

Why this code doesnt run on win7 ?

Posted 28 June 2012 - 08:27 AM

Hi folks

i found a very nice source code for firework, but the exe crahes on win7. any idea how to let it runs?

Maybe its because the processor structure or something?

source code included in attachment

Attached File(s)


Is This A Good Question/Topic? 0
  • +

Replies To: Why this code doesnt run on win7 ?

#2 GunnerInc  Icon User is online

  • "Hurry up and wait"
  • member icon




Reputation: 858
  • View blog
  • Posts: 2,279
  • Joined: 28-March 11

Re: Why this code doesnt run on win7 ?

Posted 28 June 2012 - 03:17 PM

Dunno, run it through a debugger. I don't have the time to debug code someone else wrote. No I won't run or try to debug the exe. When I get a chance, I will go through the code and when I am sure everything is ok, I will Assemble, Link and try it. Don't hold your breath though.

I take it you know nothing about Assembly?
Was This Post Helpful? 0
  • +
  • -

#3 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5234
  • View blog
  • Posts: 27,024
  • Joined: 10-May 07

Re: Why this code doesnt run on win7 ?

Posted 28 June 2012 - 03:18 PM

View PostLatias, on 28 June 2012 - 11:27 AM, said:

source code included in attachment

Feel free to use code tags & post the code.

:code:
Was This Post Helpful? 0
  • +
  • -

#4 Latias  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 73
  • Joined: 28-June 12

Re: Why this code doesnt run on win7 ?

Posted 28 June 2012 - 04:42 PM

thanks for the reply's !

i know assembly, i know how a debugger works, asm opcodes how register works etc.. only for x32.

i guess it has something to due with the instructionset i use:

.686p
.xmm
.model flat,stdcall


because the file firework.asm uses commands like "cmov" and this instructionset can handle it, but maybe win7 cant?

im sure you experts can tell me the extact problem :)
Was This Post Helpful? 0
  • +
  • -

#5 GunnerInc  Icon User is online

  • "Hurry up and wait"
  • member icon




Reputation: 858
  • View blog
  • Posts: 2,279
  • Joined: 28-March 11

Re: Why this code doesnt run on win7 ?

Posted 28 June 2012 - 04:58 PM

What kind of crash? What messages are you getting?

It is 32bit code so that stuff is fine. Win7 can handle A LOT of stuff. Trust me. You could write a program and it crashes on XP but it won't on Win7. MS writes a lot of "save you ass" code into each new OS.
Was This Post Helpful? 0
  • +
  • -

#6 Latias  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 73
  • Joined: 28-June 12

Re: Why this code doesnt run on win7 ?

Posted 29 June 2012 - 12:59 AM

no error messages just crash and exit.

Quote

a friend of me received this info from other expert, maybe you can use it to help me?

Looking at the code for FShell_recycle, the very first instruction trashes the EDI register without first preserving it and EBX suffers a similar fate a little further down

I've debugged the executable you provided and it crashes in:
lp3:
invoke FShell_render,[ebp+4],[ebp]
mov eax,GMode
mov ecx,offset FShell_explodeAG
mov ebx,offset FShell_explodeOS

etc...

Was This Post Helpful? 0
  • +
  • -

#7 Latias  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 73
  • Joined: 28-June 12

Re: Why this code doesnt run on win7 ?

Posted 29 June 2012 - 08:35 AM

problem is fixed. the author uses some invalid or wrong registers.

thanks for the help!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1