I am trying to load a library in my Delphi project and this library can be in two locations. So to load it, I am using the following code:
try
FHandle:=LoadLibrary(('some\address'));
except on EAccessViolation do
FHandle:=LoadLibrary(('another\address'));
end;
however, I am having a problem because it never reaches the exception, I got the error that there was an Access Violation but it doesn't try to load from the other address...
does any one have an idea of the reasons?
thanks,