[6.10 b1] OpenLibrary() problem
[6.10 b1] OpenLibrary() problem
Using Win10 Pro
PureBasic 6.10 b1 - x86
OpenLibrary() fail with wd1793.dll (32 bit dll).
Works with version 6.0x.
// Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)
PureBasic 6.10 b1 - x86
OpenLibrary() fail with wd1793.dll (32 bit dll).
Works with version 6.0x.
// Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)
Re: [6.10 b1] OpenLibrary() problem
We didn't change anything about OpenLibrary(), could you put the file to download somewhere ?
Re: [6.10 b1] OpenLibrary() problem
Yes. I uploaded the file to Google Drive. Thanks!
https://drive.google.com/file/d/17ujZX ... p=sharing
https://drive.google.com/file/d/17ujZX ... p=sharing
Re: [6.10 b1] OpenLibrary() problem
This is not a PureBasic problem, that dll just crashes the program.
Re: [6.10 b1] OpenLibrary() problem
With PB 6.04 x86 I get Ok.
Code: Select all
If OpenLibrary(0, "wd1793.dll")
Debug "Ok"
CloseLibrary(0)
Else
Debug "Failed"
EndIf
Re: [6.10 b1] OpenLibrary() problem
Not open with PB v6.10 B2 but with v6.04
Perhaps move back to bug report
Perhaps move back to bug report
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: [6.10 b1] OpenLibrary() problem
It's a linker issue, when using polink.exe it works, while when using link.exe it doesn't work. Why the linker is impacting LoadLibrary_() is a mystery to me but my bet is the DLL is too old for new exe.
Code: Select all
Debug LoadLibrary_("wd1793.dll")
If OpenLibrary(0, "wd1793.dll")
Debug "Ok"
CloseLibrary(0)
Else
Debug "Failed"
EndIf-
juergenkulow
- Enthusiast

- Posts: 581
- Joined: Wed Sep 25, 2019 10:18 am
Re: [6.10 b1] OpenLibrary() problem
Code: Select all
LoadLibrary_("D:\wd1793.dll")
Debug GetLastError_()
End
; 998
; ERROR_NOACCESS 998 (0x3E6) Invalid access to memory location.Re: [6.10 b1] OpenLibrary() problem
Both OpenLibrary() and LoadLibrary_() works fine with PB 6.04 x86 Windows 11 x64
Using DIE next is the information about wd1793.dll
- Operation system: Windows(XP)[I386, 32-bit, DLL]
- Packer: ASPack(2.12-2.42)[-]
- Compiler: Borland Delphi(-)[-]
- Linker: Turbo Linker(2.25*,Delphi)[DLL32]
Using DIE next is the information about wd1793.dll
- Operation system: Windows(XP)[I386, 32-bit, DLL]
- Packer: ASPack(2.12-2.42)[-]
- Compiler: Borland Delphi(-)[-]
- Linker: Turbo Linker(2.25*,Delphi)[DLL32]
Egypt my love
Re: [6.10 b1] OpenLibrary() problem
HI
The dll that was using is 41kb. After a search i found another with 64kb (link bellow). I don't know which one is older. Most important, works with PB 6.1!
https://drive.google.com/file/d/1qxgUa ... p=sharing
Well, this solve the problem.
Thank you!
The dll that was using is 41kb. After a search i found another with 64kb (link bellow). I don't know which one is older. Most important, works with PB 6.1!
https://drive.google.com/file/d/1qxgUa ... p=sharing
Well, this solve the problem.
Thank you!
Re: [6.10 b1] OpenLibrary() problem
Hi
Just to report that with beta 9 OpenLibrary() works again with wd1793.dll (both files).
The initial problem with beta 1 was solved.
Just to report that with beta 9 OpenLibrary() works again with wd1793.dll (both files).
The initial problem with beta 1 was solved.
Re: [6.10 b1] OpenLibrary() problem
True, because we switched back the linker to polink. I don't know exactly why.


