Advertisement

09.12.2008 at 07:38AM PDT, ID: 23726520 | Points: 500
[x]
Attachment Details

How do I resolve this error with regards to this splitter control.

Asked by coenewnes in VB Controls, Visual Basic Programming

Tags: , ,

I am trying to update an existing Visual basic 6.0 application that uses a splitter control.  This is a random error.  Sometimes I can run it 5 or 6 times and it will actually not error out.  I have googled this error and done everything I can think of to try and resolve.  I even installed Windbg to try and assist further and I get the following:
==================================================================================
(12fc.f74): Access violation - code c0000005 (!!! second chance !!!)
eax=018b9d18 ebx=0000cd12 ecx=000000ce edx=0030a627 esi=01853138 edi=01853488
eip=7c911639 esp=0013f52c ebp=0013f74c iopl=0         nv up ei pl zr na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000246
ntdll!RtlAllocateHeap+0x939:
7c911639 8a4805          mov     cl,byte ptr [eax+5]        ds:0023:018b9d1d=??
==================================================================================
I believe that this refers to a null reference and that the memory at "eax + 5" is no longer valid.
HELP!
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
Private Sub FindOwnInstance()
   Dim i As Long
   
   Dim s As String
   s = UserControl.Name
   Dim Myhwnd As Long
   Myhwnd = UserControl.hwnd
   
   For i = 0 To UserControl.ParentControls.Count - 1
      '
      ' IT IS THIS NEXT LINE OF CODE THAT IT CRASHES
      '
      If TypeOf UserControl.ParentControls.Item(i) Is ctlSplitterEx Then
         If UserControl.ParentControls.Item(i).hwnd = Myhwnd Then
            Set m_oMe = UserControl.ParentControls.Item(i)
            Exit For
         End If
      End If
   Next
   
   Exit Sub
   
   For i = 0 To UserControl.ParentControls.Count - 1
      If TypeOf UserControl.ParentControls.Item(i) Is ctlSplitterEx Then
         Set m_oMe = UserControl.ParentControls.Item(i)
         Exit For
      End If
   Next
   
   MsgBox ("Done.....FindOwnInstance")
   
   
 
End Sub
Attachments:
 
Splitter control code
 
[+][-]09.12.2008 at 08:09AM PDT, ID: 22460587

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.12.2008 at 08:43AM PDT, ID: 22460913

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.12.2008 at 08:49AM PDT, ID: 22460985

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.12.2008 at 08:55AM PDT, ID: 22461057

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.12.2008 at 08:57AM PDT, ID: 22461088

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.12.2008 at 09:02AM PDT, ID: 22461165

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.12.2008 at 11:43AM PDT, ID: 22462705

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.12.2008 at 12:48PM PDT, ID: 22463251

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.12.2008 at 03:09PM PDT, ID: 22464297

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.13.2008 at 06:09AM PDT, ID: 22467019

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.13.2008 at 06:09AM PDT, ID: 22467023

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.22.2008 at 12:10PM PDT, ID: 22542908

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628