flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Vasilev Vjacheslav
After very hard work i finished my program, and i want to introduce source code
for it.
_________________ [not enough memory] |
|||||||||||
![]() |
|
Vasilev Vjacheslav
small addiction: this program can display jpg, jpeg, gif, dib, bmp formats
|
|||
![]() |
|
f0dder
Hm, are you both doing CreateStreamOnHGlobal with fDeleteOnRelease=TRUE, and freeing the the memory manually afterwards?
|
|||
![]() |
|
donkey7
what about supporting png's? just wondering
![]() |
|||
![]() |
|
f0dder
Quote:
What I meant is that I see you pass TRUE on your CreateStreamOnHGlobal call, but it also seems like you're both manually freeing the memory, as well as calling the picture release method. If this is true, you're introducing a double-free bug, which can cause heap corruption (and does this reproducably on NT4). If you're not doing the double-free, sorry for misreading your code. |
|||
![]() |
|
alorent
Hello,
I just found this great example. I'm having a hard time assembling it. For example "enter" and "return" instructions produce errors in FASM. Also, procs defined like it is in the code is not accepted: proc _centerwnd, lpWnd Not sure if I'm missing includes... Any help to assembly the code with latest FASM? Thanks! |
|||
![]() |
|
LocoDelAssembly
The example is terribly old so you need to remove all ocurrences of "enter" and replace "return" with "ret". Also, it seems that at that time the locals where handled differently.You'll have to wrap them in a locals/endl block to make them work because otherwise them will end up being executable code.
As for ole32.inc you can fix that by changing "apia" in the path to "api" but I have no solution for oleaut32.inc, you'll have to search if it is available somewhere in this forum. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.