|
cvLoadImage throws exception when used in a .NET Thread: msg#01196lib.opencv
hi we are facing a weird problem we have build an c++ application that works with .NET Thread; using Visual Studio C++ .NET and using the last OpenCV release the application starts a new thread; in this thread we load and save an image; now the problem: from the moment the function of the main application is finished -- before the thread has finished -- we get an exception on cvLoadImage or/and on cvSaveImage if we keep the function alive (with a sleep) there is no problem, the thread executes cvLoadImage and cvSaveImage and finish without problem the exception is: null reference, object not set to an instance and the exception occurs in the file: loadsave.cpp on the line 317: GrFmtReader* CvImageFilters::FindReader( const char* filename ) const { return m_factories->FindReader( filename ); //!!!!! } In debug we can see that m_factories has a valid pointer and filename also contains the filename, no null reference ... Can it be because m_factories is static and we call it in another Thread?? is there anyone who can help us out?? we are really stuck here and have no idea how to solve this. thanks greetingz wes Change settings: http://www.yahoogroups.com/mygroups, select Get Emails (get all posts) Daily Digest (one summary email per day) Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe@xxxxxxxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: homography matrix: 01196, Sinan |
|---|---|
| Next by Date: | Re: cvLoadImage throws exception when used in a .NET Thread: 01196, wesley |
| Previous by Thread: | How to access pixels - urgent questioni: 01196, evaspies |
| Next by Thread: | Re: cvLoadImage throws exception when used in a .NET Thread: 01196, wesley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |