Link to home
Create AccountLog in
Avatar of cediger
cediger

asked on

Application Error -> CArray::Serialize

I have an application that keeps failing.  And I'm not exactly sure what is causing it.  In the event viewer there is an Application Error event giving the faulting applicaiton, faulting module and faulting address (0x00017d87).  I set the project setting to create a MAP file and recompiled the application.  I looked in the MAP file and the function that address is in is CArray::Serialize.  My application does not call Serialize anywhere, so I must not understand CArray (CObject) completely.  Does CArray call Serialize when it adds or removes elements or what am I missing?

Any assistance is appriciated!
Thank you,
Cameron.
Avatar of Axter
Axter
Flag of United States of America image

Hi cediger,

Did you look at your stack when your error occurs?

Cheers!
Avatar of cediger
cediger

ASKER

The only way I know how view the stack is through a Dr Watson log file.  Last week I configured dr watson to report a full crash dump but a dr watson log file is not created when my program crashes.
>>The only way I know how view the stack is through a Dr Watson log file.  Last week I configured dr watson to report a full crash dump but a dr watson
>>log file is not created when my program crashes.

You can view the stack from VC++ itself.

Run the program from VC++, and when you get a compile error press (ALT+7)

Or select from the main menu [View]->[Debug Windows]->[Call Stack]

That will display your stack.
Avatar of cediger

ASKER

This is actually on a production system so VC++ is not installed.  I have not been able to recreate this problem in our test environment.
ASKER CERTIFIED SOLUTION
Avatar of wayside
wayside

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of cediger

ASKER

That's interesting.  I am statically listening.  So I know it has nothing to do with the CArray::Serialize then.

> Are you using the "rva+base" column of the map file to find the address?

No, I was looking at the Address column on the left.  If I take that address (0x00017d87) and look at the Rva+Base column (00417d87), that is one of the functions that I think the failure could be in.  I will see  if I can get the remote debugging set up and see if that will help.