Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Windows 7 code crash


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Latias   Members   -  Reputation: 104

Like
0Likes
Like

Posted 28 June 2012 - 09:34 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?

Edited by Latias, 29 June 2012 - 01:27 PM.


Ad:

#2 Bacterius   Crossbones+   -  Reputation: 3516

Like
1Likes
Like

Posted 28 June 2012 - 11:39 AM

Interesting. Works fine on 32-bit XP but fails on Windows 7 (64-bit, at least). Unlikely to be the processor's fault, my guess (by sifting through the assembler code) is that the author relied on some default behaviour from the WIn32 API which eventually got changed. There is a call to the HLT opcode in the code at line 582, which is curious considering halt instructions are privileged - I guess he used it to generate an exception in case the preceding ExitThread fails somehow.

Perhaps one of the assembler gurus on the forum can be more accurate Posted Image

Edited by Bacterius, 28 June 2012 - 12:49 PM.

"The best comment is a deleted comment."
website · blog


#3 Latias   Members   -  Reputation: 104

Like
0Likes
Like

Posted 28 June 2012 - 12:15 PM

Thanks for reply!

someone thinks it's because the autor doesnt saving/restoring registers properly.
Procedures should always preserve ESI/EDI/EBP/EBX registers he said.

edit: it is solved =]

Edited by Latias, 29 June 2012 - 09:39 AM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS