leadedge / ofxNDI

An Openframeworks addon to allow sending and receiving images over a network using the NewTek Network Device Protocol.
GNU General Public License v3.0
134 stars 48 forks source link

ndiSender.GetNDIversion() crashes in macOS #39

Closed dimitre closed 1 year ago

dimitre commented 1 year ago

it seems p_NDILib is a NULL pointer when we call this function. Screen Shot 2022-12-14 at 12 32 44

leadedge commented 1 year ago

That's a strange one. We can protect against that. But it appears that the library has not loaded. Can you look at the value of "m_bNDIinitialized"? Do other functions fail?

dimitre commented 1 year ago

Hey sorry, NDI was not installed in this computer :)

dimitre commented 1 year ago

other functions didn't fail

leadedge commented 1 year ago

All the other functions test "m_bNDIinitialized" but this one does not, so I will change that.

leadedge commented 1 year ago

Changes just uploaded to the testing branch. The function is now the same as in ofxNDIreceive.

There was no library unload in the destructor of ofxNDIdynloader.cpp if not WIN32. Could you check that the change is OK?