I suspect the Tcl/Tk DLLs are simply not in scope/installed - worth
checking at least.

--sigbjorn

> -----Original Message-----
> From: Alastair Reid [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 13, 2000 9:42 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Possible sources of message "Error while importing DLL"? 
> 
> 
> 
> [CC redirected to hugs-bugs, hugs-users shouldn't be seeing 
> bug reports]
> 
> The error message is printed when a call to Win32's LoadLibrary call
> returns NULL.  This could indicate:
> 
> o That the dll was incorrectly linked, or corrupted during download.
> 
>   You can check this using Win32 tools which show you 
> information about
>   dll files.  (I forget which ones, perhaps just the usual "Get Info"
>   menu item.)
> 
> o That the dll was built against a very different version of Hugs.
> 
>   Very unlikely, the Hugs<->dll interface has been stable for 
> a long time
>   and most changes would affect later stages in the code.
> 
> o That the dll was built against a different version of Win32 or TCL.
> 
>   Possible - there's a number of versions of both out there.  Win32
>   incompatabilities usually don't show up at load-time (Microsoft
>   seems to prefer runtime errors to load-time errors) but it could
>   happen.  I have no experience of tcl.
> 
>   If you built all your code from source (as opposed to 
> downloading a binary
>   from somewhere), this isn't too likely.
> 
> o The the dll is not on the search path.
> 
>   Shouldn't apply because we use an absolute pathname to load 
> the library.
>   I doubt it's relevant but maybe the ".." in the pathname is causing
>   problems?  You could test this by loading just 
> 
>      C:\FranTK\src\TclHaskellSrc\TclPrim.hs
> 
> I have limited access to Win32 boxes these days so I'm afraid I can't
> do anything to check any of these - try 'em all, start with 
> the easiest.
> 
> [I also can't comment on atwoodj's theory about DOS environment sizes
> - I don't know Win95 well enough.]
> 
> 
> Alastair
> 
> 
> > Fritz K Ruehr wrote:
> > > 
> > > During an installation and first test run of FranTk under Hugs
> > > (latest release) within Win 95, my student and I encountered an
> > > error message about importing a DLL file:
> > > 
> > > -------
> > > 
> > > ...
> > > Reading file "C:\HUGS98\..\FranTK\src\TclHaskellSrc\TclPrim.hs":
> > > Reading file "C:\HUGS98\lib\exts\Word.hs":
> > > Reading file "C:\HUGS98\..\FranTK\src\TclHaskellSrc\TclPrim.hs":
> > > Parsing
> > > ERROR "C:\HUGS98\..\FranTK\src\TclHaskellSrc\TclPrim.hs": 
> Error while importing
> > > DLL "C:\FranTK\src\TclHaskellSrc\TclPrim.dll"
> > > 
> > > -------
> > > 
> > > Does anyone know what sorts of problems are likely to lead to this
> > > message? More specifically, is this likely to be an 
> internal problem
> > > with the DLL file or a file access problem? There were 
> some differences
> > > in upper/lowercase between the filename and reference, 
> but fixing this
> > > did not fix the problem.
> 
> 

Reply via email to