..xml etc).
can you help me out on this.
karimulla.
Thanks for your reply.
i tried debugging the release version. Now i am getting an access violation
pop up when i reach to "comip.h - Native C++ compiler COM support - COM
interface pointers header" file and after executing the below code
// Try to extract either IDispatch* or an IUnknown* from
// the VARIANT
//
HRESULT QueryStdInterfaces(const _variant_t& varSrc) throw()
{
...;
if (FAILED(hr) && (hr == E_NOINTERFACE)) {
// That failed ... so try IUnknown
VariantInit(&varDest);
hr = VariantChangeType(&varDest, const_cast<VARIANT*>(static_cast<const
VARIANT*>(&varSrc)), 0, VT_UNKNOWN);
if (SUCCEEDED(hr))
{
hr = _QueryInterface(V_UNKNOWN(&varSrc));
}
}
The hr value i am getting here is -1 the then it is failing at the
termination of the thread(i.e: Afxendthread(nResult)) and with nResult zero.
i hope somewhere in my code i am try to access invalid memory and working
aroud the code. can you please help me if there is any specific reason of
this error.
-karimulla.
"Tom Serface" wrote:
I've found that, for me, when these sorts of things happen it's usually an
assigned variable or memory overflow problem. Many times, if the program
actually crashes, it is a stack problem where there is an array or character
buffer that gets overflowed.
You could try putting in some logging information (pop up messages perhaps)
to see if you can narrow down where it is happening. You could also try
debugging the release version since you can often step through it even
though it isn't alway the same as debug (optimization sometimes changes the
source/code locations). I've still found it to be useful.
Joe's article may give you some additional insights and things to try:
http://www.flounder.com/debug_release.htm
Tom
"karim" <karim@discussions.microsoft.com> wrote in message
news:3BAD1DA4-C1F1-49BE-BD86-D416D13B3287@microsoft.com...
Hi All,
i have a problem with release dll(VC6.0). Actually my application access
files from a particular directory and parses it .The application works
fine
if i provide .def, .xml and some other files with both debug and release
versions. when i put a .Zip file in that directory, the application works
fine with debug version,but crashes with release version. i am even not
able
to analyse what hell going there. can you please help me out.
Thanks in anticipation,
karimulla.