|
Re: cvLoadImage throws exception when used in a .NET Thread: msg#01197lib.opencv
sorry guys to post my previous message, after posting it, the magician solved our problem it is indeed by using the static member in a threaded application that causes the problem hope someone in the future can be helped by this double post ... bye wes --- In OpenCV@xxxxxxxxxxxxxxx, "wesley" <wesley_lorrez@...> wrote: > > 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: | cvLoadImage throws exception when used in a .NET Thread: 01197, wesley |
|---|---|
| Next by Date: | Re: Video resolution: 01197, Rafael Nevarez |
| Previous by Thread: | cvLoadImage throws exception when used in a .NET Threadi: 01197, wesley |
| Next by Thread: | Re: cvLoadImage throws exception when used in a .NET Thread: 01197, wesley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |