Results 1 to 2 of 2

Thread: Pls. solve this problem....?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    India
    Posts
    22
    Hi,
    When I am closing application .exe (not in coding), i am facing this problem,
    The Error Message is..
    "SAMPLEEXE (exe name)
    this program has performed an illegal operation and will be shutdown.
    If the problem persists, contact the program vendor."
    In Details,
    "SAMPLEEXE caused an invalid page fault in module msvbvm60.dll at 0137:66024bc8....regsiters:..." and it is going on like this.

    I suspect, this might be a memory problem, in which, loaded objects are not released. This error is not coming when i am coding, but it comes only when running the exe file.

    The problem situation is...
    I have an Exe file, SampleExe and a ActiveX dll file SampleDll. Both SampleDll file and SampleExe file are using some ActiveX controls. From a menu of SampleExe, I am calling SampleDll file.
    I Opened dll file and then Closed it. Now, I am closing my SampleExe file by close button of Mdi form. Now, after closing this application (SampleExe), i am getting the above error. I am forced to shut down my system. I have created my application in NT m/c and I hv installed it in 95 M/cs.

    Could anybody, Pls. tell me what is the problem and how to solve it..?

    Actually the size of the DLL is 1.7MB. Will this be the cause of the problem. If so, what will be the optimum size of an Activex control ?

    Luv,
    Md. Rafik. B.

    [Edited by mdrafik on 07-28-2000 at 10:46 AM]

  2. #2
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    Auckland, NZ
    Posts
    411

    Something to try...

    you said:

    I am closing my SampleExe file by close button of Mdi form
    How? With an End statement? Do you use Subclassing at all?

    Have you simplified the problem by reducing the code to as little as possible to reproduce the problem?

    And finally, what is the ActiveX control or perhaps more importantly, are you certain that it is not the problem (is it a VB control and is it using subclassing for example).

    Subclassing is one of the quickest and easiest ways to crash a VB app... Very efficient at doing that I have to add

    Regards
    Paul Lewis


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width