Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

First-chance exception 1

Status
Not open for further replies.

malone4

Programmer
Apr 3, 2001
5
MX
Hi there,

I have a program with several structures, some of them made by union (quite big ones). At a given moment the program gives me the following error (after that an allocation with 'new' for a structure returns NULL):
Loaded "nrdll.dll", no matching symbolic information found.
Loaded "C:\Windows\system32\kernel32.dll", no matching symbolic information found.
First-chance exception in MAIN.exe (NTDLL.DLL):0xC0000005 Access violation

Can anyone explain me what is going on? And how to solve this issue?

Thank you.
Malone
 
You can get more info about that if you run your application under the Dependency Walker.
-obislavu-
 
Thanks for the suggestion.
Unfortunatelly I didn't get wiser with the Dpeendency Walker, but maybe I could use it in other occasions.

I write this for others too. I searched the Web and on the support page of Microsoft there is information about this error.
Hmmm, however, with all the suggestions they make, I could not make it work.
 
>after that an allocation with 'new' for a structure returns NULL

This could imply you've run out of memory.

/Per

"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."
 
I don't know which version of Dependency Walker you are running but when you profile you app you should get information about which function call is due the exception. Should be a call of NTDLL from a function of another dll and it is shown by profiler and could give some hint.
Also, under Depenedency Walker sort the dlls loaded by your app in the order of loading and try to check if all are compatible and check the paths from the files are loaded. Maybe you have some old dlls or same dlls in different folders.
The 0xC0000005 Access violation is not due to one thing.
- use an unitialized pointer
- a string is not zero terminated and it is part of the strcpy(), for example
- an event handler is expected to return a LONG but is defined as void
- improper use of COLEVARIANT
-....
-obislavu-
 
Hi all,

thanks for the enumeration of possible problems. It was not out from memory, but seems that had problems with strings. SO, I took out all string initializations and works (until, now).

Thank you.
Malone4
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top