More details:
The code is here:
http://msdn.microsoft.com/en-us/library/ms737593%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-us/library/ms737591%28v=vs.85%29.aspx
After a successful compile with Mex I run the server and get:
------------------------------------------------------------------------
Segmentation violation detected at Mon Sep 12 15:34:23 2011
------------------------------------------------------------------------
Configuration:
MATLAB Version: 7.11.0.584 (R2010b)
MATLAB License: 115723
Operating System: Microsoft Windows XP
Window System: Version 5.1 (Build 2600: Service Pack 3)
Processor ID: x86 Family 6 Model 10 Stepping 7, GenuineIntel
Virtual Machine: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
Default Encoding: windows-1252
Fault Count: 3
Abnormal termination:
Register State (from fault):
EAX = 00000000 EBX = 00000000
ECX = 1d6f7250 EDX = 00000000
ESP = 00c2e71c EBP = 00c2e71c
ESI = 00c2ee3c EDI = 1d225d70
EIP = 7bce1d76 EFL = 00010297
CS = 0000001b DS = 00000023 SS = 00000023
ES = 00000023 FS = 0000003b GS = 00000000
...