RE: vb6 usercontrol gives access violation when handling events

From: simmonda (simmonda_at_community.nospam)
Date: 01/20/05

  • Next message: doodles82a_at_yahoo.com: "Expanding Gray Bar That Covers Excel Cells"
    Date: Thu, 20 Jan 2005 02:11:02 -0800
    
    

    Hi,

    thanks for the response.

    It is odd that you can't reproduce the problem yet I can obtain the same
    results on several machines. Upgrading to SP6 is not an option to be taken
    lightly as the real application has been deployed to many sites using sp5
    runtimes and the machines here are used to maintain that application.

    The small example app that I posted was the result of paring away the
    structure of our main application to try and determine the cause of the main
    fault that we are experiencing which is that the VBVM enters an endless loop
    during form unload. The looping problem does not manifest itself on every run
    of the application so appears to be dependant on the VM state becoming
    corrupted after continued use of the application.

    A search of Google groups shows a couple of other instances where the same
    occurs but they have no resolution so I have no clues as to further
    investigation. A couple of those instances have suggested using a timer on
    the form to perform the unload thus removing the nested event handlers and
    this does seem to work, however, I have concerns that any pending events
    (e.g. should the user accidentally triple click rather than double) will be
    able to sneak in ahead of the timer.

    The nested user control access violation was found during testing of the
    application using the C++ debugger as there are a large number of COM objects
    written in C++ in use as well as the VB front end. My concern is that the
    violation I am experiencing with the form unload leads to the VM looping
    problem which is causing our customers problems. The access violation may
    indeed have nothing to do with the looping VM problem but a search of Google
    with respect to that issue also shows a couple of instances from other users.
    Once again, however, there is no resolution to the problem so no suggestions
    as to how to proceed with the investigation.

    So in summary, I have two problems which can be treated in isolation,
    however, there is the concern that one problem eventually leads to the other
    after running the application for a period of time. Any other suggestions for
    potential causes that can be investigated would be welcomed.

    Many thanks in advance for your help

    Andrew

    ""Peter Huang" [MSFT]" wrote:

    > Hi
    >
    > I have tested on both windbg, vc++7.0 debugger and vc6.0 debugger, but I
    > can not reproduce the problem.
    > So far I think you may try to refresh the most recently service pack(sp6
    > for vs6) to see if that works for you.
    > Also here I attach my test project in the attament, you may have a try.
    >
    >
    > Best regards,
    >
    > Perter Huang
    > Microsoft Online Partner Support
    >
    > Get Secure! - www.microsoft.com/security
    > This posting is provided "AS IS" with no warranties, and confers no rights


  • Next message: doodles82a_at_yahoo.com: "Expanding Gray Bar That Covers Excel Cells"

    Relevant Pages

    • Re: New Bug: Word 2007: Can result in deletion of template files
      ... I can reproduce the issue across different machines in a heterogeneous ... During the "double save" bug, the file saved are not empty, but they don't ... from the merge display area (where it shows the final merge result and views ...
      (microsoft.public.word.application.errors)
    • Re: MFC MDI app hangs randomly on some machines, but not others (most are OK). Typical causes?
      ... If the problem is reproducible on the problematic machines, that is, the ... same file always hang on machine X, but not on Y and Z, you will probably ... old method of adding logging code to your app, ... > major Windows operating systems have failed to reproduce the bug. ...
      (microsoft.public.vc.mfc)
    • Weird problems with pf (on both 5.x and 6.x)
      ... It happens that I noticed two odd networking problems recently. ... Once I figured out how to reproduce the problem, ... try to duplicate the problem on some other machines. ... for *outbound* connections, ...
      (freebsd-stable)
    • Re: Another very easy grid header question
      ... Thanks very much for your feedback. ... Actually, for your issue, I still did not find a way to reproduce out. ... this problem occur in other machines on your side? ... Thank you for your patience and cooperation. ...
      (microsoft.public.dotnet.framework.windowsforms.controls)
    • Re: FreeBSD 7.0: sockets stuck in CLOSED state...
      ... machines. ... This was with Apache servers in the proxy setup: ... reproduce the problem on my amd64, ...
      (freebsd-net)