dokan-dev / dokan-delphi

Dokan Delphi Wrapper
MIT License
60 stars 22 forks source link

DOKAN_EXPLICIT_LINK If I use this I always get an acces violation in the DokanDLL on Win32 #13

Closed EdwinDijkshoorn closed 10 months ago

EdwinDijkshoorn commented 10 months ago

Reproduction:

program Mirror; ....... dokanOperations.Unmounted := MirrorUnmounted; dokanOperations.FindStreams := MirrorFindStreams; dokanOperations.Mounted := MirrorMounted;

if DokanLoad('C:\Program Files\Dokan\DokanLibrary-2.0.6\x86\dokan2.dll') then begin Writeln(ErrOutput, 'loaded'); //<---- This is printed end; DokanInit;

Writeln(ErrOutput, DokanVersion.ToString); status := DokanMain(dokanOptions, dokanOperations); <--- Throws Exception


Debugger Exception Notification

Project Mirror.exe raised exception class $C0000005 with message 'access violation at 0x7b015f37: read of address 0x000000d2'.

Break Continue Copy Help

landrix commented 10 months ago

do you have installed Dokan Library 2.0.6? https://github.com/dokan-dev/dokany/releases/tag/v2.0.6.1000 or newer?

EdwinDijkshoorn commented 10 months ago

2.0.6.10000 Tried the mirror example with the changes posted above compiled for win32. 64bit (C:\Program Files\Dokan\DokanLibrary-2.0.6\x86\dokan2.dll) does work.

landrix commented 10 months ago

and now?

EdwinDijkshoorn commented 10 months ago

Yes, No Accesviolation ! Tanks for the quick fix