Page 1 of 1
[6.10 b1] OpenLibrary() problem
Posted: Sat Dec 23, 2023 5:34 pm
by Otrebor
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)
Re: [6.10 b1] OpenLibrary() problem
Posted: Tue Jan 16, 2024 8:35 am
by Fred
We didn't change anything about OpenLibrary(), could you put the file to download somewhere ?
Re: [6.10 b1] OpenLibrary() problem
Posted: Tue Jan 16, 2024 3:06 pm
by Otrebor
Re: [6.10 b1] OpenLibrary() problem
Posted: Tue Jan 16, 2024 6:40 pm
by fryquez
This is not a PureBasic problem, that dll just crashes the program.
Re: [6.10 b1] OpenLibrary() problem
Posted: Tue Jan 16, 2024 8:57 pm
by infratec
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
Posted: Tue Jan 16, 2024 9:59 pm
by mk-soft
Not open with PB v6.10 B2 but with v6.04
Perhaps move back to bug report
Re: [6.10 b1] OpenLibrary() problem
Posted: Fri Jan 19, 2024 5:53 pm
by Fred
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
Re: [6.10 b1] OpenLibrary() problem
Posted: Sat Jan 20, 2024 6:09 am
by juergenkulow
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
Posted: Sat Jan 20, 2024 9:30 am
by RASHAD
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]
Re: [6.10 b1] OpenLibrary() problem
Posted: Sat Jan 20, 2024 9:14 pm
by Otrebor
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!
Re: [6.10 b1] OpenLibrary() problem
Posted: Sat Mar 23, 2024 12:04 am
by Otrebor
Hi
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
Posted: Sat Mar 23, 2024 7:47 am
by Fred
True, because we switched back the linker to polink. I don't know exactly why.