Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Using DLI files on Windows
Re: Using DLI files on Windows [message #38557 is a reply to message #38549] Sun, 23 December 2012 14:46 Go to previous message
Novo is currently offline  Novo
Messages: 1430
Registered: December 2006
Ultimate Contributor
mirek wrote on Sun, 23 December 2012 03:56

Well, in that dli struct, functions are represented as member variable pointers, so you can check the existence before making call.

In any case, I do not think that mere NOP instead of missing function is a good idea in most places (say the function is supposed to return a handle that you use downstream in your code, it would cause havoc).

Mirek


Thanks. I did check a member for NULL pointer. It looks like this dll is just a proxy to other dlls and I should check version of API instead of a pointer to function because call to clRetainDevice doesn't crash with Intel platform an does crash with NVIDIA although they implement the same version of this API ...

I tried to check content of IMAGE_EXPORT_DIRECTORY.AddressOfFunctions. But everything seemed to be fine.

Sorry for false alarm.


Regards,
Novo
 
Read Message icon5.gif
Read Message
Read Message
Previous Topic: size_t or int in 64 bits
Next Topic: Repeatable crash
Goto Forum:
  


Current Time: Tue Jun 17 07:15:38 CEST 2025

Total time taken to generate the page: 0.03949 seconds