OpenCV3.2 x64 on Win7_64 Fault Module Name: KERNELBASE.dll

Just starting out? Need help? Post your questions and find answers here.
LiK137
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Jun 23, 2010 5:13 pm

OpenCV3.2 x64 on Win7_64 Fault Module Name: KERNELBASE.dll

Post by LiK137 »

I have modified OpenCV cv_functions.pbi to use MemDLL.pb by Luis instead of:

Code: Select all

;{ 
ImportC "opencv_world320.lib"
  cv2DRotationMatrix(*center, angle.d, scale.d, *map_matrix)
  cvAbsDiff(*src1, *src2, *dst)
.
.
.
.
EndImport
;}
used:

Code: Select all

;{
Global opencv_world320.i = MemDLL_LoadLibrary(?wldStartFile)
If opencv_world320 > 0 
  PrototypeC protocv2DRotationMatrix(*center, angle.d, scale.d, *map_matrix)
  PrototypeC protocvAbsDiff(*src1, *src2, *dst)
  PrototypeC protocvAbsDiffS(*src, *dst, *value)
.
.  
.  
  Global cv2DRotationMatrix.protocv2DRotationMatrix
  Global cvAbsDiff.protocvAbsDiff
  Global cvAbsDiffS.protocvAbsDiffS
.
.
.

  cv2DRotationMatrix = MemDLL_GetProcAddress(opencv_world320, "cv2DRotationMatrix")
  cvAbsDiff = MemDLL_GetProcAddress(opencv_world320, "cvAbsDiff")
  cvAbsDiffS = MemDLL_GetProcAddress(opencv_world320, "cvAbsDiffS")
.
.
.
EndIf

;}
x86 version is working smooth but x64 after starting camera in all examples (I selected "cv_cam_dct.pb" for example) fails with kernelbase.dll

I run debugged with onerror support and receive errors starting from line where "cvFlip(*image, #Null, 1)" up to all lines where cvMemory procedures used.

The interesting is that:
original with dll wrapper without memdll is working
opencv examples with memdll in x86 working
other x64 ipcamera sdk dlls with memdll is working

just this is making problems.

OpenCV 3.2 x64 donloaded from:
https://1drv.ms/u/s!ApfjGYM2v-vZnAIvlgnicqI_hxxu

memDll.pbi from
http://www.purebasic.fr/english/viewtopic.php?t=67345

memDll.pbi uploaded to dropbox:
https://www.dropbox.com/s/e9czydcarjl2v ... l.pbi?dl=0

modified cv_functions.pbi uploaded to:
https://www.dropbox.com/s/y0sdyea1oesia ... s.pbi?dl=0



Thanx in Advance
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: OpenCV3.2 x64 on Win7_64 Fault Module Name: KERNELBASE.

Post by JHPJHP »

Hi LiK137,

Windows 10 / PureBasic 5.60 (x64)
- tested 20+ examples including cv_cam_dct.pb: all worked without error

Try creating a new User Profile, and testing the failed examples again.

NOTE:
- created folder: includes\dllFroMem(x86_x64)\
-- copied memDll.pbi to includes\dllFroMem(x86_x64)\
- replaced includes\cv_functions.pbi with the modified version
- moved 2 files
-- binaries\opencv_ffmpeg320_64.dll to includes\opencv_ffmpeg320_64.dll
-- binaries\opencv_world320.dll to includes\opencv_world320_64.dll (renamed)
LiK137
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Jun 23, 2010 5:13 pm

Re: OpenCV3.2 x64 on Win7_64 Fault Module Name: KERNELBASE.

Post by LiK137 »

Thanx JHPJHP for Your reply,
I have checked on several different computers and laptops (the most difficult was finding with webcams).
on Windows 10ProAnniversary HPZbook, VMWare W7SP1 on ZBook, Win7ProSP1 HP Z workstation, Win7SP1 HP 8200 elite PC, Windows 10Pro HP elite PC.
On HP Elite 8200 either W7 or W10 I succeed executing woproblems. On computers where I have problems running there were VS2015 and many updates. I have to dig deeper to find common update making this failure.

ThanQ very much for perfect help.
Post Reply