RE: Error in Release Mode
- From: gilgamesh <asdfasfd@xxxxxxxxxxxx>
- Date: Wed, 18 May 2005 09:28:03 -0700
The text logging was a good idea. I found that some #if debug statements and
some initializations were causing the problems...
Regards,
G
"gilgamesh" wrote:
> Thanks steve for the inputs... I will check my code again. Seems to me I
> might be having initialization problems. Plus I am just moving from good old
> C++ to C# and using some COM Interop... (My C++ code is fine Just C# that
> crashes in the release version). Thanks again. Will let u know if I find
> anything interesting
> G
>
> "diehardii" wrote:
>
> > Hi G,
> >
> > Be sure that you have initialized all of your variables in the constructor.
> > It sounds like you are crashing in a constructor or shortly afterwards. For
> > instance, if you have
> >
> > bool m_btestcase
> >
> > //
> > // later
> > //
> >
> > if(!m_btestcase)
> > {
> > instantiate something
> > }
> >
> >
> > reference something
> >
> >
> > In the debug case, m_btestcase may always be false in which case your code
> > would be executed. However, in the release version, the variable may always
> > be true which would lead to major issues. This is one of the main reasons
> > release versions do not work and debug versions do. In addition, I've found
> > it very useful to create a logging class that writes a textfile. This way you
> > can locate the problem step in your program even if you are not debugging. In
> > fact, with directshow I've found it easier to use my logging class instead of
> > the debugger. If you would like my class, I can send it to you. Good luck.
> >
> > ~Steve
> >
> >
> >
> > "gilgamesh" wrote:
> >
> > > Hi All,
> > > Thanks for your time. I can build my video capture app and run in debug
> > > mode. When I try to run it in the release mode it fails with a
> > > NullReferenceException. It doesnt even get into the app.
> > > I even tried setting optimize code to false. No avail. It crashes even
> > > before it can enter the code giving NullReferenceException. Any suggestions.
> > > Thanks a lot.
> > > G
.
- References:
- Error in Release Mode
- From: gilgamesh
- RE: Error in Release Mode
- From: diehardii
- RE: Error in Release Mode
- From: gilgamesh
- Error in Release Mode
- Prev by Date: Re: configure asf resolution
- Next by Date: bmp to jpeg
- Previous by thread: RE: Error in Release Mode
- Next by thread: what built-in dshow Mux filters are available to multiplex audio video in a video conferencing app?
- Index(es):
Relevant Pages
|