1. open_dll troubles
- Posted by Patrick Barnes <mrtrick at gmail.com> Feb 17, 2005
- 449 views
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
2. Re: open_dll troubles
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Feb 17, 2005
- 429 views
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
3. Re: open_dll troubles
- Posted by Patrick Barnes <mrtrick at gmail.com> Feb 17, 2005
- 428 views
- Last edited Feb 18, 2005
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
4. Re: open_dll troubles
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Feb 17, 2005
- 427 views
- Last edited Feb 18, 2005
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