473,657 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Should I "EVER" get access violations?

Friends, we are using ADPlus (CDB) to log w3wp.exe things are part of our
debugging efforts. A log file gets filled with TONS of "1st chance
AccessViolation " exceptions. Is this to be expected? Or, is this
indicative of some flaw that we need to fix. THings keep running, and we
never see "Second Chance", so I guess somebody is catching this stuff.

Your thoughts will be very much appreciated. Thanks in advance!

James


Mon Nov 7 09:21:14.265 2005 (GMT-8): (92c.cc4): Access violation - code
c0000005 (first chance)
---
--- 1st chance AccessViolation exception ----
---------------------------------------------------------------

Occurrence happened at:
Debug session time: Mon Nov 7 09:21:14.265 2005 (GMT-8)
System Uptime: 17 days 0:12:29.234
Process Uptime: 0 days 0:03:07.043
Kernel time: 0 days 0:00:01.593
User time: 0 days 0:00:04.562

Faulting stack below ---
# ChildEBP RetAddr Args to Child
00 0dc0f44c 792cd542 c0000005 00000000 00000002 kernel32!RaiseE xception+0x53
(FPO: [Non-Fpo])
WARNING: Stack unwind information not available. Following frames may be
wrong.
01 0dc0f48c 792cd586 791c97f0 0dc0f820 00000000
mscorsvr!Releas eFusionInterfac es+0x18fea
02 0dc0f4e8 0d662d27 064a982c 0dc0f554 021a62d8
mscorsvr!Releas eFusionInterfac es+0x1902e
03 0dc0f4ec 064a982c 0dc0f554 021a62d8 021863a8 0xd662d27
04 0dc0f4f0 0dc0f554 021a62d8 021863a8 020e8948 0x64a982c
05 0dc0f4f4 021a62d8 021863a8 020e8948 0d662acc 0xdc0f554
06 0dc0f554 0d661131 021a62d8 021863a8 020e8948 0x21a62d8
07 0dc0f59c 0cfeca7c 020e8948 021863a8 0218565c 0xd661131
08 0dc0f6cc 799a67a2 021856c4 021859c8 799b4168 0xcfeca7c
09 0dc0f6d8 799b4168 00000002 00000000 01ec14b0 mscorlib_799900 00+0x167a2
0a 0dc0f760 79217188 00000000 00d83310 060d9c9c mscorlib_799900 00+0x24168
0b 0dc0f794 77e6bf94 00000057 00165228 0dc0f7b0
mscorsvr!GetAss emblyMDImport+0 x2e86f
0c 0dc0f7a4 77ea33b6 c000000d 0dc0f7e8 0dc0f774
kernel32!BaseSe tLastNTError+0x 17 (FPO: [Non-Fpo])
0d 0dc0f7b0 0dc0f774 0dc0f76c 0dc0f774 0dc0f774 kernel32!Activa teActCtx+0x2a
(FPO: [Non-Fpo])
0e 0dc0f814 791cc3c8 0dc0f884 791b3d64 0dc0f900 0xdc0f774
0f 0dc0f854 791b3e57 0dc0f8c4 7923c1c3 001650a0 mscorsvr!Ordina l76+0x1c3c8
10 0dc0f8b8 7923bcf2 0dc0ffdc 0dc0f9a8 01a3a179 mscorsvr!Ordina l76+0x3e57
11 0dc0f908 79e76329 01e9ffec 00d83310 00000000
mscorsvr!CoUnin itializeEE+0x7a f
12 019a3bdc 00000000 00000000 0289018b 8b04c183
aspnet_isapi!Ht tpCompletion::P rocessRequestIn ManagedCode+0x1 7e (FPO: [Uses
EBP] [0,138,0])

Nov 19 '05 #1
3 1458
yes, its probably bad. the error is occurring when asp.net is trying to
release a com obect, but the com object is blowing chuncks. its after page
processing so your pages don't see it. who knows what unmanged memory looks
like or if your leaking

-- bruce (sqlwork.com)
"James Hunter Ross" <ja********@one ilsoft.com> wrote in message
news:eG******** ******@TK2MSFTN GP14.phx.gbl...
Friends, we are using ADPlus (CDB) to log w3wp.exe things are part of our
debugging efforts. A log file gets filled with TONS of "1st chance
AccessViolation " exceptions. Is this to be expected? Or, is this
indicative of some flaw that we need to fix. THings keep running, and we
never see "Second Chance", so I guess somebody is catching this stuff.

Your thoughts will be very much appreciated. Thanks in advance!

James


Mon Nov 7 09:21:14.265 2005 (GMT-8): (92c.cc4): Access violation - code
c0000005 (first chance)
---
--- 1st chance AccessViolation exception ----
---------------------------------------------------------------

Occurrence happened at:
Debug session time: Mon Nov 7 09:21:14.265 2005 (GMT-8)
System Uptime: 17 days 0:12:29.234
Process Uptime: 0 days 0:03:07.043
Kernel time: 0 days 0:00:01.593
User time: 0 days 0:00:04.562

Faulting stack below ---
# ChildEBP RetAddr Args to Child
00 0dc0f44c 792cd542 c0000005 00000000 00000002
kernel32!RaiseE xception+0x53 (FPO: [Non-Fpo])
WARNING: Stack unwind information not available. Following frames may be
wrong.
01 0dc0f48c 792cd586 791c97f0 0dc0f820 00000000
mscorsvr!Releas eFusionInterfac es+0x18fea
02 0dc0f4e8 0d662d27 064a982c 0dc0f554 021a62d8
mscorsvr!Releas eFusionInterfac es+0x1902e
03 0dc0f4ec 064a982c 0dc0f554 021a62d8 021863a8 0xd662d27
04 0dc0f4f0 0dc0f554 021a62d8 021863a8 020e8948 0x64a982c
05 0dc0f4f4 021a62d8 021863a8 020e8948 0d662acc 0xdc0f554
06 0dc0f554 0d661131 021a62d8 021863a8 020e8948 0x21a62d8
07 0dc0f59c 0cfeca7c 020e8948 021863a8 0218565c 0xd661131
08 0dc0f6cc 799a67a2 021856c4 021859c8 799b4168 0xcfeca7c
09 0dc0f6d8 799b4168 00000002 00000000 01ec14b0 mscorlib_799900 00+0x167a2
0a 0dc0f760 79217188 00000000 00d83310 060d9c9c mscorlib_799900 00+0x24168
0b 0dc0f794 77e6bf94 00000057 00165228 0dc0f7b0
mscorsvr!GetAss emblyMDImport+0 x2e86f
0c 0dc0f7a4 77ea33b6 c000000d 0dc0f7e8 0dc0f774
kernel32!BaseSe tLastNTError+0x 17 (FPO: [Non-Fpo])
0d 0dc0f7b0 0dc0f774 0dc0f76c 0dc0f774 0dc0f774
kernel32!Activa teActCtx+0x2a (FPO: [Non-Fpo])
0e 0dc0f814 791cc3c8 0dc0f884 791b3d64 0dc0f900 0xdc0f774
0f 0dc0f854 791b3e57 0dc0f8c4 7923c1c3 001650a0 mscorsvr!Ordina l76+0x1c3c8
10 0dc0f8b8 7923bcf2 0dc0ffdc 0dc0f9a8 01a3a179 mscorsvr!Ordina l76+0x3e57
11 0dc0f908 79e76329 01e9ffec 00d83310 00000000
mscorsvr!CoUnin itializeEE+0x7a f
12 019a3bdc 00000000 00000000 0289018b 8b04c183
aspnet_isapi!Ht tpCompletion::P rocessRequestIn ManagedCode+0x1 7e (FPO: [Uses
EBP] [0,138,0])

Nov 19 '05 #2
Interesting. Is this true?

The developers in-house were convinced this was normal MFC-related stuff
when used in a windowless context, such as when hosted under w3wp.exe or
something.

We are having other issues related to critical sections (not our own, but
possibly ODBC or CRecordset internal ones) that don't get released, and
folks end up blocking waiting. The entire app basically stops, at least as
far as users are concerned.

Any clue on ow we meight proceed? I've been using AD-Plus (CDB) and
IISState to look at the guts of w3wp.exe after these "hangs, and these tools
have helped us rule out some things. But, these "1st chance
AccessViolation " messages might be a clue.

James
Nov 19 '05 #3
I've used past version of CRecordset in a middle tier component
without problems - at least not related to the MFC stuff itself. I
think we took ATL project templates and added support for MFC
libraries.

Are you reproducing the problem in a development environment?

Can you ask the debugger to break "when the exception is thrown"
(Debug - > Exceptions dialog box) instead of breaking when an
exception goes unhandled (the default)? Just throwing out an idea.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Thu, 10 Nov 2005 10:22:07 -0800, "James Hunter Ross"
<ja********@one ilsoft.com> wrote:
Interesting. Is this true?

The developers in-house were convinced this was normal MFC-related stuff
when used in a windowless context, such as when hosted under w3wp.exe or
something.

We are having other issues related to critical sections (not our own, but
possibly ODBC or CRecordset internal ones) that don't get released, and
folks end up blocking waiting. The entire app basically stops, at least as
far as users are concerned.

Any clue on ow we meight proceed? I've been using AD-Plus (CDB) and
IISState to look at the guts of w3wp.exe after these "hangs, and these tools
have helped us rule out some things. But, these "1st chance
AccessViolatio n" messages might be a clue.

James


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8894
by: Robert Ferrell | last post by:
I have a style question. I have a class with a method, m1, which needs a helper function, hf. I can put hf inside m1, or I can make it another method of the class. The only place hf should ever be invoked is from inside m1. Is either style preferred? Here are two short examples: Helper function as method:
235
11684
by: napi | last post by:
I think you would agree with me that a C compiler that directly produces Java Byte Code to be run on any JVM is something that is missing to software programmers so far. With such a tool one could stay with C and still be able to produce Java byte code for platform independent apps. Also, old programs (with some tweaking) could be re-compiled and ported to the JVM. We have been developing such a tool over the last 2 years and currently...
11
1853
by: WindAndWaves | last post by:
Hi Gurus I have recently discovered references in the VB section of MS Access, however, when choosing references, I noticed that there are more than who knows how many options. How and/or where do you i get more information on all the references available? Are there any that I should be using / should be avoiding (I know about the DAO stuff)? Keen to hear any suggestions.
10
2599
by: LaEisem | last post by:
On-the-job, I have "inherited" a lot of old C language software. A question or two about when "casting" of null pointer constants is needed has occurred during behind-the-scenes cleanup of some of that software. That subject seems not to be addressed, at least not directly, in the C FAQ where FAQ 5.2 seems most relevant. References: * C FAQ 5.2 Null pointers (Including conditions where "casting" of null pointer...
2
10018
by: rollasoc | last post by:
Hi, When I load my application I get the the above first chance exception. Stepping through my code it appears to be on the last line of the these two lines Process current = Process.GetCurrentProcess(); Process processes = Process.GetProcessesByName (current.ProcessName);
10
3372
by: jaire | last post by:
In my application I have two threads. Each of them creates a new propertygrid. In the property grid I have a property with a color editor. Whenever i am clicking on the combo box to change the 'Color' in the first thread is fine. Any other thread that tries to modify the color in the property grid throws: "Controls created on one thread cannot be parented to a control on a
3
2746
by: nsh | last post by:
mailing.database.mysql, comp.lang.php subject: does "LOAD DATA" EVER work?!? I've tried EVERYTHING! version info: my isp is running my web page on a linux box with php ver. 4.4.1 according to phpinfo, the "mysql api client is ver. 4.0.25" - I have no idea how this relates, if at all, to the mysql engine's version. background:
30
4096
by: Pep | last post by:
Is it best to include the code "using namespace std;" in the source or should each keyword in the std namespace be qualified by the namespace tag, such as std::cout << "using std namespace" << std::endl; Myself I am not sure which I prefer, it is certainly easier to specify that the std namespace is being used instead of tagging each member of the namespace?
19
2217
by: maya | last post by:
hi, so what is "modern" javascript?? the same as "DOM-scripting"? i.e., editing content (or changing appearance of content) dynamically by massaging javascript objects, html elements, etc? (in conjunction with css, you know, the usual...;) this is what is meant by "modern" javascript?? so how do folks feel about this who think javascript is so evil they disable it from their browsers?? do sites designed with "modern" javascript...
0
8319
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8837
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8612
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6175
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5638
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2739
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.