flat assembler
Message board for the users of flat assembler.

Index > Windows > DLL Problem

Author
Thread Post new topic Reply to topic
ejamesr



Joined: 04 Feb 2011
Posts: 52
Location: Provo, Utah, USA
ejamesr 17 Feb 2012, 18:39
I've been trying to call external functions from a DLL I create with FASM, but there seems to be an issue possibly due to my OS (64-bit Vista Home). I'm sure it's not me or my code Rolling Eyes'.

Because...

The same problem occurs when using the sample DLL code provided in the FASM download (1.69.37, downloaded four days ago -- I'll try it with a new download). So either the FASM example code has a bug, or there's some OS-related issue.

Using the EXAMPLES\DLL asm example programs in the FASM package, I compile ERRORMSG.ASM and it creates ERRORMSG.DLL. Next, I compile LASTERR.ASM, and it compiles. No errors yet, everything seems fine.

But when I run the LASTERR.EXE program just created, it crashes and burns with the message "The requested lookup key was not found in any active activation context."

I can't debug this with either WinDbg or OllyDbg, either, as they get lost.

Help! Any suggestions? Is the sample code incomplete?
Post 17 Feb 2012, 18:39
View user's profile Send private message Send e-mail Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 17 Feb 2012, 18:55
I works here in Windows 7 Home Premium 64-bit. I get the following MessageBox:
Code:
---------------------------
Error
---------------------------
Access is denied.


---------------------------
OK   
---------------------------    
But notice it is not crashing and burning, the program is supposed to always show an error. (I'm capable of using OllyDbg v2.01 alpha 4 here)
Post 17 Feb 2012, 18:55
View user's profile Send private message Reply with quote
ejamesr



Joined: 04 Feb 2011
Posts: 52
Location: Provo, Utah, USA
ejamesr 17 Feb 2012, 19:09
OK, stupid me -- of course it was giving me an error - that's what it is working as it was supposed to. And I can now debug and run the example code with OllyDbg (which wouldn't work an hour ago...).

I did have some issues with OllyDbg (v 1.10, because v 2.0x wouldn't work), and WinDbg gets totally lost.

So, please ignore this thread!

Eric
Post 17 Feb 2012, 19:09
View user's profile Send private message Send e-mail Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.