1. open_dll troubles

I have a library that never returns from an open_dll call.
The dll file is in the same directory, and all the dependencies it has
are in the windows\system32 folder

Gets to this:
constant ds = open_dll("drawstuff.dll")


And goes no further. It doesn't quit, doesn't spit out an ex.err file,
just hangs.
Any ideas?

I can open the dll in depencywalker (a free MS tool) and see all the
exposed functions just fine.
-- 
MrTrick

new topic     » topic index » view message » categorize

2. Re: open_dll troubles

Patrick Barnes wrote:
> 
> I have a library that never returns from an open_dll call.
> The dll file is in the same directory, and all the dependencies it has
> are in the windows\system32 folder
> 
> Gets to this:
> }}}
<eucode>
> constant ds = open_dll("drawstuff.dll")
> </eucode>
{{{

> 
> And goes no further. It doesn't quit, doesn't spit out an ex.err file,
> just hangs.
> Any ideas?
> 
> I can open the dll in depencywalker (a free MS tool) and see all the
> exposed functions just fine.

I believe that this is a dll that you're making?  You need to figure out
what's going on in the initialization code (DllMain).  If you don't have
an interactive debugger, you could add some printf's or some other logging
mechanism to figure out where it's getting stuck.

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

3. Re: open_dll troubles

Well, the dll isn't one I've made myself, it's a just been bound into
a dll... maybe there's not a dllMain function?

I'll try the printfs, but if there's no point of entry that'll be difficult.


On Thu, 17 Feb 2005 03:58:24 -0800, Matt Lewis <guest at rapideuphoria.com>
wrote:
> 
> posted by: Matt Lewis <matthewwalkerlewis at gmail.com>
> 
> Patrick Barnes wrote:
> >
> > I have a library that never returns from an open_dll call.
> > The dll file is in the same directory, and all the dependencies it has
> > are in the windows\system32 folder
> >
> > Gets to this:
> > }}}
<eucode>
> > constant ds = open_dll("drawstuff.dll")
> > </eucode>
{{{

> >
> > And goes no further. It doesn't quit, doesn't spit out an ex.err file,
> > just hangs.
> > Any ideas?
> >
> > I can open the dll in depencywalker (a free MS tool) and see all the
> > exposed functions just fine.
> 
> I believe that this is a dll that you're making?  You need to figure out
> what's going on in the initialization code (DllMain).  If you don't have
> an interactive debugger, you could add some printf's or some other logging
> mechanism to figure out where it's getting stuck.
> 
> Matt Lewis
> 
> 
> 
> 


-- 
MrTrick

new topic     » goto parent     » topic index » view message » categorize

4. Re: open_dll troubles

Patrick Barnes wrote:
> 
> Well, the dll isn't one I've made myself, it's a just been bound into
> a dll... maybe there's not a dllMain function?
> 
> I'll try the printfs, but if there's no point of entry that'll be difficult.

There has to be a point of entry.  In the source, it will be either LibMain
or DllMain.  That's what windows calls when it loads the dll.  Try translating
some Euphoria to make a dll, and take a look at what you get.

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu