Running SendData.cpp example causes assertion failure
JYoung2123 opened this issue · comments
JYoung2123 commented
Chadwick Boulay commented
Did you build this yourself? Or is this worth a binary you downloaded from somewhere?
JYoung2123 commented
I setup a project in visual studio and pasted this code from the examples
folder, so I assume Visual Studio built it?
…On Sat, Nov 5, 2022, 5:50 PM Chadwick Boulay ***@***.***> wrote:
Did you build this yourself? Or is this worth a binary you downloaded from
somewhere?
—
Reply to this email directly, view it on GitHub
<#175 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVPFQRKZABA2OAQWOPEI46DWG3QEFANCNFSM6AAAAAARYDKNOU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
Chadwick Boulay commented
I'll try to replicate it. Which visual studio did you use?
JYoung2123 commented
Visual Studio 2022, 17.3.6
For reference, I imported the headers/lib files from liblsl-1.16.0-Win_amd64.zip
Chadwick Boulay commented
There isn't any problem with this repo, neither the library code, the release library archive, or the SendData.cpp source. Edit: SendData had a tiny bug.
I just did the following 3 tests, without issue:
- Cloned the liblsl repo, built the whole thing, including the examples, and ran SendData.cpp without issue
- This is a bit different in that the linked lsl library is freshly-built.
- Edit: Not sure why I didn't trigger the problem here.
- Downloaded the same liblsl release you linked above, cloned an application repo (labstreaminglayer/App-AudioCapture), configured its build to use the liblsl release, built and ran the AudioCapture app. (Also fixed an old error it had, unrelated). This also worked.
- Unlike your project (at least from what I can infer), this used CMake and Qt.
- Used a fresh visual studio project.
- Create a new source file with its contents pasted exactly from a copy of SendData.cpp.
- Modified the project properties
C\C++>General>Additional Include Directories
to add theinclude
directory in the extracted archive. - Modified the project properties
Linker>General>Additional Library Directories
to add thelib
directory in the extracted archive. - Built the project.
- Manually copied lsl.dll into the same folder as the Project1.exe (i.e.
Project1\x64\Release
) - Ran the executable without error.
- Edit: Also not sure why I didn't trigger the problem here. I'm starting to think I had a local branch with the fix?
Chadwick Boulay commented
Oh, maybe I spoke too soon, I was just able to trigger it. I'll continue looking.
Chadwick Boulay commented
OK, it's fixed now. 08aa186