tempPath = Path.Combine(Path.GetTempPath(),"vision_tmp_" + Guid.NewGuid().ToString("N") + ".bmp");
File.Copy(imgPath, tempPath, true);
ImageSourceModuleTool imageSource = (ImageSourceModuleTool)VmSolution.Instance["流程1.图像源1"];
imageSource.SetImagePath(tempPath);
VmSolution.Instance.SyncRun();
这个是log
******************************************************
System memory:
5,035,296K/16,664,516K(30.216%, physical)
11,057,452K/19,154,884K(57.727%, virtual)
Current process:
[7532,CLVision.exe] private byte:1,356,480K
Top:
[7532,CLVision.exe] private byte:1,356,480K
[448,explorer.exe] private byte:299,020K
[7668,AweSun.exe] private byte:295,536K
******************************************************
ImageSourceModule 2025-08-05 11:20:16
KERNEL32 2011-03-02 06:27:29
MSVCR120 2017-05-25 06:28:52
MVDImageCpp 2025-04-14 14:03:57
MVDMediaProcess 2024-10-18 11:10:07
ntdll 2105-05-09 14:26:22
ExceptionCode : ACCESS_VIOLATION
CallStack:
Frame 0: MSVCR120.dll! memcpy
Frame 1: Unknow.dll! Unknow
Frame 2: Unknow.dll! Unknow
Frame 3: MVDMediaProcess.dll! MV_MP_WhiteBalanceProcess
Frame 4: MVDMediaProcess.dll! MV_MP_WhiteBalanceProcess
Frame 5: MVDMediaProcess.dll! MV_MP_WhiteBalanceProcess
Frame 6: MVDMediaProcess.dll! MV_MP_DecodeFromFileEx
Frame 7: MVDImageCpp.dll! DestroyImageInstance
Frame 8: ImageSourceModule.dll! CMyAlgorithmManager::ConvertFileImage
Frame 9: ImageSourceModule.dll! CMyAlgorithmManager::AddShareMemoryImgToList
Frame 10: ImageSourceModule.dll! CMyAlgorithmManager::ThridImageThreadProcess
Frame 11: ImageSourceModule.dll! Unknow
Frame 12: MSVCR120.dll! beginthreadex
Frame 13: MSVCR120.dll! endthreadex
Frame 14: KERNEL32.dll! BaseThreadInitThunk
Frame 15: ntdll.dll! RtlUserThreadStart
暂无回答