Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
2464 Discussions

Just-in-time debugging,Visual studio.

sindhura
Beginner
547 Views
hi..
i'm using Intel TBB 2.1 with OpenCV and Microsoft Visual Studio 2008 express edition.
while implementing parallel_for function, i get a run-time error that says:

An unhandled win32 exception occurred ...[5556]. Just-in-Time debugging this exception failed with the following error: No installed debugger has just-in-time debugging enabled.
express edition doesnt support JIT debugging. is it essential to have a JIT debugger to use TBB?
also, why do you think the error occurs?
this is the code snippet thats causing the problem:
//////////////////////////////////////////////////////////////////////////

class ApplyFoo {
IplImage **const my_a;
public:
void operator()( const blocked_range& r ) const {
IplImage **a = my_a;
for( size_t i=r.begin(); i!=r.end(); ++i )
DCTscramenc(a);
}
ApplyFoo( IplImage* a[] ) : my_a(a)
{}


};


void ParallelApplyFoo( IplImage* a[], size_t n ) {
printf("parallel enter\n");
parallel_for(blocked_range(0,n), ApplyFoo(a),auto_partitioner());
}
//////////////////////////////////////////////////////////////////////////////

the error pops-up as soon as there is a call to the ParallelApplyFoo function:
ParallelApplyFoo(image,4);
(where image is of Ip
can someone help me sort this out?

thanks and regards,
sindhura
0 Kudos
4 Replies
gaston-hillar
Valued Contributor I
547 Views
Quoting - sindhura.t
hi..
i'm using Intel TBB 2.1 with OpenCV and Microsoft Visual Studio 2008 express edition.
while implementing parallel_for function, i get a run-time error that says:

An unhandled win32 exception occurred ...[5556]. Just-in-Time debugging this exception failed with the following error: No installed debugger has just-in-time debugging enabled.
express edition doesnt support JIT debugging. is it essential to have a JIT debugger to use TBB?
also, why do you think the error occurs?
this is the code snippet thats causing the problem:
//////////////////////////////////////////////////////////////////////////

class ApplyFoo {
IplImage **const my_a;
public:
void operator()( const blocked_range& r ) const {
IplImage **a = my_a;
for( size_t i=r.begin(); i!=r.end(); ++i )
DCTscramenc(a);
}
ApplyFoo( IplImage* a[] ) : my_a(a)
{}


};


void ParallelApplyFoo( IplImage* a[], size_t n ) {
printf("parallel entern");
parallel_for(blocked_range(0,n), ApplyFoo(a),auto_partitioner());
}
//////////////////////////////////////////////////////////////////////////////

the error pops-up as soon as there is a call to the ParallelApplyFoo function:
ParallelApplyFoo(image,4);
(where image is of Ip
can someone help me sort this out?

thanks and regards,
sindhura

Hi sindhura.t,

I've always used Intel TBB with Visual Studio Team System. However, I know that Express Editionsdon't support Just-In-Time Debugging. Check this link from Microsoft: http://msdn.microsoft.com/en-us/library/5hs4b7a6.aspx

Your application is having a problem, and VS tries to launch JIT debugger.
0 Kudos
sindhura
Beginner
547 Views
are there any conditions in the code i gave above, with respect to tbb usage, that would result in such a error?
0 Kudos
RafSchietekat
Valued Contributor III
547 Views
Some essential text seems to have disappeared near "where image is of" in the original posting.

I see nothing obvious, but, if you don't get past the printf() call ("as soon as there is a call to the ParallelApplyFoo function"), how is this related to TBB?
0 Kudos
sindhura
Beginner
547 Views
thanks for replying...
i wasn't initialising task scheduler correctly... my bad. i'm very new to tbb.

0 Kudos
Reply