[fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()

Fred van Stappen fiens at hotmail.com
Fri Jan 17 16:53:47 CET 2014


> What is the value of the handle that was returned?
> 
> Ludo

Re-hello Ludo.

That code :

if ST_Load('/home/fred/dynlib_vs_windows/libSoundTouch.so') then
   writeln('libSoundTouch.so loaded');
 if FHandle <> NilHandle then soundtouch_clear(FHandle);    
 FHandle := soundtouch_createInstance(); 
  writeln(FHandle); 
 FVersionID := soundtouch_getVersionId();
  writeln(FVersionID);
 FVersionString := StrPas(soundtouch_getVersionString());  
  writeln(FVersionString);
 soundtouch_setChannels(FHandle, 2);
 writeln('OK SetChannels');
 soundtouch_setSampleRate(FHandle, 44100);
 writeln('OK SampleRate');
 
 > Gives that result :

libSoundTouch.so loaded
22351184
10800
1.8.0
OK SetChannels
An unhandled exception occurred at $00007FE493CE2AE8:
EAccessViolation: Access violation
  $00007FE493CE2AE8
------------------
(program exited with code: 217)


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140117/aa433449/attachment.html>


More information about the fpc-pascal mailing list