下面主要想问下unity kinect手势代替方向键方面的问题,自己在写手势内容的时候,出现了问题,但是找不到问题,所以发出来求大深给解决一下。

用C++写了个Kinect手势的dll给unity用,脚本是用C#写的,点Play运行没有问题,打包运行exe报错!求大神现身帮忙看看是什么原因哪,先跪谢了。。。。

error.log如下:

  1. Unity Player [version: Unity 4.3.4f1_e444f76e01cd]

  2. KinectPluginForUnity.dll caused an Access Violation (0xc0000005)
  3. in module KinectPluginForUnity.dll at 001b:6840117c.

  4. Error occurred at 2014-05-07_155058.
  5. C:\Users\Administrator\Documents\Unity Project\ModelView\ModelView.exe, run by Administrator.
  6. 28% memory in use.
  7. 3540 MB physical memory [2517 MB free].
  8. 0 MB paging file [0 MB free].
  9. 2048 MB user address space [1762 MB free].
  10. Read from location 00000000 caused an access violation.

  11. Context:
  12. EDI: 0x7682e918 ESI: 0x00000000 EAX: 0x00000000
  13. EBX: 0x03a1e5e8 ECX: 0x7ffdf000 EDX: 0x00000006
  14. EIP: 0x6840117c EBP: 0x0014f138 SegCs: 0x0000001b
  15. EFlags: 0x00010246 ESP: 0x0014f104 SegSs: 0x00000023

  16. Bytes at CS:EIP:
  17. 8b 10 50 8b 42 44 ff d0 a1 e4 36 40 68 8b 08 8b 

  18. Stack:
  19. 0x0014f104: 0014f30c 0a40e4e0 03a39871 0014f138 ......@.q...8...
  20. ..............................................
  21. 0x0014fcd4: 

  22. Module 1
  23. C:\Users\Administrator\Documents\Unity Project\ModelView\ModelView.exe
  24. Image Base: 0x01340000 Image Size: 0x00b65000
  25. File Size: 11288064 File Time: 2014-01-24_062148
  26. Version:
  27. Company: 
  28. Product: 
  29. FileDesc: 
  30. FileVer: 4.3.4.31067
  31. ProdVer: 4.3.4.31067

  32. Module 2
  33. C:\Windows\system32\xinput1_3.dll
  34. Image Base: 0x00400000 Image Size: 0x00016000
  35. File Size: 81768 File Time: 2007-04-04_185342
  36. Version:
  37. Company: Microsoft Corporation
  38. Product: Microsoft? DirectX for Windows?
  39. FileDesc: Microsoft Common Controller API
  40. FileVer: 9.18.944.0
  41. ProdVer: 9.18.944.
  42. 。。。。。。此处略去好多
  43. Module 77
  44. C:\Windows\system32\NSI.dll
  45. Image Base: 0x773f0000 Image Size: 0x00006000
  46. File Size: 8704 File Time: 2009-07-14_091612
  47. Version:
  48. Company: Microsoft Corporation
  49. Product: Microsoft? Windows? Operating System
  50. FileDesc: NSI User-mode interface DLL
  51. FileVer: 6.1.7600.16385
  52. ProdVer: 6.1.7600.16385


  53. == [end of error.log] ==




  54. output_log如下:
  55. Initialize engine version: 4.3.4f1 (e444f76e01cd)
  56. GfxDevice: creating device client; threaded=1
  57. Direct3D:
  58. Version: Direct3D 9.0c [nvd3dum.dll 9.18.13.3523]
  59. Renderer: NVIDIA GeForce GTX 660 
  60. Vendor: NVIDIA
  61. VRAM: 1989 MB (via DXGI)
  62. Caps: Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=0 INTZ=1 RAWZ=0 NULL=1 RESZ=0 SlowINTZ=0
  63. Begin MonoManager ReloadAssembly
  64. Platform assembly: C:\Users\Administrator\Documents\Unity Project\ModelView\ModelView_Data\Managed\UnityEngine.dll (this message is harmless)
  65. Loading C:\Users\Administrator\Documents\Unity Project\ModelView\ModelView_Data\Managed\UnityEngine.dll into Unity Child Domain
  66. 。。。。。。此处略去好多
  67. C:\Windows\system32\dbghelp.dll:dbghelp.dll (68810000), size: 962560 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\dbghelp.dll', fileVersion: 6.1.7601.17514
  68. C:\Windows\system32\SspiCli.dll:SspiCli.dll (75180000), size: 110592 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\SspiCli.dll', fileVersion: 6.1.7601.18270

  69. ========== OUTPUTING STACK TRACE ==================

  70. (0x6840117C) (KinectPluginForUnity): (filename not available): (function-name not available) + 0x0
  71. 。。。。。。此处略去好多
  72. (0x7682EE1C) (kernel32): (filename not available): BaseThreadInitThunk + 0x12
  73. (0x772E37EB) (ntdll): (filename not available): RtlInitializeExceptionChain + 0xef
  74. (0x772E37BE) (ntdll): (filename not available): RtlInitializeExceptionChain + 0xc2

  75. ========== END OF STACKTRACE ===========

  76. **** Crash! ****