CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2001
    Posts
    26

    Application Error When Unloading form

    Hi

    I have a form with an activex on it in aprogram that starts from Sub main and when I call unload form (from sub main)I receive an application error:

    The instruction at "..." refrenced memory at "...".
    the memory could not be read

    I dont need the form really and I use it only as the container of my ActiveX control

    could someone tell me What is the reason?

    Thanks Ehsan


  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Application Error When Unloading form

    You sure your activex on form is not running some code? You sure you have only one instance of form (or only the form) loaded?

    Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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

Featured