OpenHome Forum
Compiling the Test Codes "Tests" - Printable Version

+- OpenHome Forum (
+-- Forum: OpenHome (/forumdisplay.php?fid=1)
+--- Forum: Net (/forumdisplay.php?fid=5)
+--- Thread: Compiling the Test Codes "Tests" (/showthread.php?tid=1174)

Compiling the Test Codes "Tests" - Basco - 07-10-2013 05:38 AM

I am trying to compile the test codes in "\ohNet-master\OpenHome\Net\Bindings\Cs\ControlPoint\Tests"
I downloaded the source and creatd a project and adding these files in the directorty above.

I then downloaded the Binaries (ohNet-Windows-x86-debug-dev 21-Feb-2013 14:44 1.5M ). I placed the "ohNet.dll" in my Debug folder and also included "" as reference.

1)In the file TestCpDeviceDV.Cs I get
a) "SubnetList does not contain definition for Dispose()"
b) Type or namespace "DeviceBasic" could not be found

2)In the file TestProxy.Cs, I added "" I get
a) "SubnetList does not contain definition for Dispose()"
So I treid to change Dispose() to "Destroy". The code runs fine but at the end when it says Tests Completed I get Debug Assertion Failed. Its says File:f:\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c Line 1322 Expression: _CrtIsValidHeadPointer(pUserData)

Any help is highly appreciated.

My Ultimate goal is to build a simple media Controller. I also have a server and a Renderer.

RE: Compiling the Test Codes "Tests" - simonc - 07-10-2013 07:54 AM

You're using binaries which are 8 months old. Does your source code match this? I'd guess that it doesn't and the build errors are caused by your applications expecting APIs we've added since February.

If you're using the latest source code, can you try using the binaries published on 2nd October (last week) instead please?

If this still doesn't work, can you post an example program that demonstrates the problems you're seeing?

RE: Compiling the Test Codes "Tests" - Basco - 08-10-2013 12:44 AM

Thank you very much simonc, Its now working.
The problem was I was using out of date binaries.