From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime error at loading cwimaqkernel in bcb4

run time error occurred at CWIMAQKernel loading, complie and linking passed.
Borland C++ Builder 4.0

code lists are as follows:
void __fastcall TImageForm::Button1Click(TObject *Sender)
{
_CWIMAQKernelDisp Kernel;
CWIMAQVision1->ReadImage(CWIMAQViewer1->Image,WideString(PicturesFileName.c_str())); // ok
Kernel.LoadKernel(cwimaqKernelLaplacian,3,5);
/// ----------------run time error occurred at above line.
CWIMAQVision1->Convolute(CWIMAQViewer1->Image,CWIMAQViewer1->Image,cwimaqBorderClear,Kernel);//ok
}
0 Kudos
Message 1 of 3
(2,850 Views)
Hello,
There is a KnowledgeBase on ni.com which addresses this issue:

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/862567530005f09c8625674a004d9845?OpenDocument

Regards

Russell Blake
Applications Engineering
National Instruments
Director of Engineering
G Systems, www.gsystems.com
Certified LabVIEW Architect
Certified LabVIEW Embedded Systems Developer
Certified Professional Instructor
GCentral
0 Kudos
Message 2 of 3
(2,850 Views)
Thanks your answer!
poorly, I can't this problem in bcb4.

How declare the variable correctly in bcb4.

Error occurred commands are below.
_CWIMAQKernelDisp Kernel;
Kernel.LoadKernel(cwimaqKernelLaplacian,3,5);

I've tried like this
_CWIMAQKernelDisp *Kernel;
Kernel=new _CWIMAQKernelDisp;
Kernel->LoadKernel(cwimaqKernelLaplacian,3,5);
but run-time error occurred.
0 Kudos
Message 3 of 3
(2,850 Views)