Tcl Source Code

View Ticket
Login
Ticket UUID: 217993
Title: load dll returning invalid argument
Type: Bug Created on: 2000-10-26 00:51:46
Submitter: nobody Assigned to: nobody
Subsystem: 40. Dynamic Loading Severity:
Priority: 2 Last modified: 2001-04-17 04:30:48
Status: Closed Closed by: dgp
Resolution: Fixed Closed on: 2001-04-16 21:30:48
Version: obsolete: 8.1a2
Description:
OriginalBugID: 608 Bug
Version: 8.1a2
SubmitDate: '1998-05-21'
LastModified: '1999-10-21'
Severity: LOW
Status: Closed
Submitter: hershey
ChangedBy: hobbs
OS: All Windows
FixedDate: '2000-10-25'
FixedInVersion: NA
ClosedDate: '1999-10-21'


Has anyone any experience with problems loading DLLs under Wish?
Here are the facts:

Under Tcl/Tk ver 81a2:

  % load x.dll  (no error)
  % load y.dll
  couldn't load file "x.dll": invalid argument

  Both load properly on 3 other Win 95 stations running 80p2

Thought it problem with new 81a2 so I:

  Uninstalled 81a2
  Installed 80p2  in C:\Tcl80p2
  Installed 81a2  in C:\Tcl81a2

Could now run both Wish versions concurrently.

  Now the behaviour is:

  In 80p2:  % load x.dll  (no error)
            % load y.dll
            couldn't load file "y.dll": invalid argument

  In 81a2:  % load x.dll

            Windows displays "This program has performed an illegal
                              operation and will be shut down."
                              (Invalid page fault)

  In 81a2:  % load y.dll
            couldn't load file "y.dll": invalid argument

Gussing a conflict of some kind I:

  Un-Installed 80p2
  Un-Installed 81a2
  Installed 80p2

Behaviour of 80p2 is unchanged, I cannot load the y.dll.

The DLLs in question are from the NeoSoft archive. I have not used their
actual names or sources since I believe they are irrelevant. 

Does anyone have any suggestions (before I resort to fdisk, which
completely removes ALL types of errors.)

Bob Halpin


This could be related to the fact that the DLL are not
being loaded into the correct version of which for which
they were compiled.  This can cause that error.  Also
possible, is that they should be referenced with a relative
or absolute pathname (./x.dll or /path/to/x.dll).
The specific DLLs are important, and without that information,
we have to assume this is DLL specific. 
-- 10/21/1999 hobbs