473,385 Members | 1,930 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Access violation with a CheckedListbox.

I'm getting the following error when I shut down my C# .NET v1.1
application:

0xC0000005: Access violation reading location 0x73bc0000

This error didn't occur until I added a TabControl to my form and placed a
CheckedListBox on the second page. This error only occurs when the
application is terminating and only if the second page of the tab control is
visible and the CheckedListBox contains at least one item. The access
violation occurs whether there is only one item in the CheckedListBox or
several. The access violation appears 26 consecutive times in the debugger's
Output window. (I have Unmanaged Debugging enabled since this C# .NET
application utilizes an unmanaged DLL.)

The unmanaged DLL does not appear to be causing the access violation. All
threads spun by it are terminated before the application shuts down and all
API's exposed by it are very simple and handle based (no pointers except for
Unicode string marshalling.)

When the error occurs there's only one thread still running in the
application. This is a snapshot of the Threads window from the debugger:
1804 Win32 Thread _IsBadReadPtr@8 Normal 0
Here is a snapshot of the call stack for the thread from the Call Stack
window of the debugger:
kernel32.dll!_IsBadReadPtr@8() + 0x39


wblind.dll!6604fefc()

kernel32.dll!_BasepGetModuleHandleExW@16() + 0x172

ntdll.dll!_RtlFreeHeapSlowly@12() + 0x23d19

This is a snippet of the disassembly where the access violation occurred.
(The instruction pointer is signified by "->" in the left margin.)

...

7C809EB3 6A 10 push 10h

7C809EB5 68 18 9F 80 7C push 7C809F18h

7C809EBA E8 0C 86 FF FF call __SEH_prolog (7C8024CBh)

7C809EBF A1 3C 30 88 7C mov eax,dword ptr
[_BaseStaticServerData (7C88303Ch)]

7C809EC4 8B B0 2C 01 00 00 mov esi,dword ptr [eax+12Ch]

7C809ECA 8B 45 0C mov eax,dword ptr [ebp+0Ch]

7C809ECD 85 C0 test eax,eax

7C809ECF 74 3A je _IsBadReadPtr@8+55h (7C809F0Bh)

7C809ED1 8B 55 08 mov edx,dword ptr [ebp+8]

7C809ED4 85 D2 test edx,edx

7C809ED6 0F 84 7C 29 00 00 je _IsBadReadPtr@8+6Ah (7C80C858h)

7C809EDC 8D 7C 02 FF lea edi,[edx+eax-1]

7C809EE0 3B FA cmp edi,edx

7C809EE2 0F 82 70 29 00 00 jb _IsBadReadPtr@8+6Ah (7C80C858h)

7C809EE8 83 65 FC 00 and dword ptr [ebp-4],0

-> 7C809EEC 8A 02 mov al,byte ptr [edx]

7C809EEE 8D 46 FF lea eax,[esi-1]

7C809EF1 F7 D0 not eax

7C809EF3 8B C8 mov ecx,eax

7C809EF5 23 CA and ecx,edx

7C809EF7 89 4D E4 mov dword ptr [ebp-1Ch],ecx

7C809EFA 23 C7 and eax,edi

7C809EFC 89 45 E0 mov dword ptr [ebp-20h],eax

7C809EFF 3B C8 cmp ecx,eax

7C809F01 0F 85 45 29 00 00 jne _IsBadReadPtr@8+48h (7C80C84Ch)

7C809F07 83 4D FC FF or dword ptr [ebp-4],0FFFFFFFFh

7C809F0B 33 C0 xor eax,eax

7C809F0D E8 F9 85 FF FF call __SEH_epilog (7C80250Bh)

7C809F12 C2 08 00 ret 8

7C809F15 90 nop

7C809F16 90 nop

...

I would greatly appreciate help of any kind. I'm fairly new to .NET and C#
and I'm not sure where I should investigate.

Thanks!
Nov 16 '05 #1
0 1788

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

Similar topics

0
by: Steven Reddie | last post by:
In article <slrnbnj19j.av.juergen@monocerus.manannan.org>, Juergen Heinzl wrote: >In article <f93791bd.0309282133.650da850@posting.google.com>, Steven Reddie wrote: >> I understand that access...
0
by: Matt C. | last post by:
Does the CheckedListBox support DisplayMember/ValueMember? I have been trying to use these properties with the CheckedListBox and they are not working. I see from Google that databinding is not...
4
by: Matthew | last post by:
Hi, I am using a checkedlistbox on a windows form and binding it to a collection of classes. clbAliases is the checkedlistbox control selectedplace is a class with property placealiases.This...
8
by: Derek Martin | last post by:
Here is some code that I need help with please: Dim result As New ArrayList Try For i = 0 To objecttest1.PersonList.person_returnnumber - 1 result =...
2
by: Manuel Canas | last post by:
Hi there, I'm having this dilema with a checkedlistbox. I have an array of items in there, what I want to accomplish is the following; The user could check all the items in the...
0
by: Terry Olsen | last post by:
Dim dirs() as string = Directory.GetDirectories(MyPath) CheckedListBox.DataSource = dirs CheckedListBox.Update For I as Integer = 0 To CheckedListBox.Items.Count - 1...
5
by: mabond | last post by:
Hi Can't believe I've not been able to find the answer to this in the on-line help. I have a CheckedListBox which, via a timer control, is populated with the names of files in a network...
6
by: Steve Teeples | last post by:
Can someone show me an example of how to place a "CheckedListBox" property within a PropertyGrid? -- ----------- Thanks, Steve
39
by: Martin | last post by:
I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP 5.2.5. I have not used or changed this site for several months - the last time I worked with it, all was well. When I tried it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.