Unanswered VS Express crash

  • Wednesday, September 19, 2012 4:19 PM
     
     

    bit of a newbie to visual basic but here goes, when i try to add a certain activex control to my windows form visual basic displays the message "visual studio has stopped and must close" it then closes and restarts!, it also happens when i try and open the form designer of a form that already contains the activex control, everything was ok until i migrated to windows 7 from xp sp3

    i have checked and updated the activex control it has been tested on windows 7 32 bit and 64 bit, weird thing is i can run the project in debug and it works perfect, i just cant add the control to a new form or open an existing form with it in!

    we do have group policies here at work, that are stricter on w7 than they were on xp sp3, could this be something to do with it?

All Replies

  • Wednesday, September 19, 2012 5:03 PM
     
     

    just open you form's designer and remove all codes relates your activex control,

    then compile your designer codes and later open your project solution and recompile the same also,

    should solve your problem!


    Pl. Mark/Proposed as Answer if found your solution Vote as Helpful if related to your topic. Always Motivate others by performing this Action.

    • Edited by ArifMustafa Wednesday, September 19, 2012 5:04 PM
    •  
  • Thursday, September 20, 2012 5:53 AM
     
     

    Hi,

    You need to check whether the Active X has some Xp version. if you just want to use the code without Active control, hust using ArifMustafa's suggestion.


    No code, No fact.

  • Thursday, September 20, 2012 8:20 AM
     
     

    just open you form's designer and remove all codes relates your activex control,

    then compile your designer codes and later open your project solution and recompile the same also,

    should solve your problem!


    Pl. Mark/Proposed as Answer if found your solution Vote as Helpful if related to your topic. Always Motivate others by performing this Action.

    the activex control is for communications between a PC and a PLC without it the code and complete project is useless!

    Going to try using XP mode!

    By the way the reason vb closes is due to a memory access violation dont know if that helps!

    Thanks for the replies

  • Thursday, September 20, 2012 8:48 AM
     
     

    the activex control is for communications between a PC and a PLC without it the code and complete project is useless!

    Does the ActiveX control come with a sample program? If so, does that work on Windows 7?

    Does the PLC's manufacturer have any advice?

    --
    Andrew


  • Thursday, September 20, 2012 1:37 PM
     
     

    It does come with a sample program which does exactly the same thing as my program, bye bye VB

    The manufacturers website says the activex controls have been tested on windows 7 32 and 64 bit and are compatible

    Beginning to think its down to some sort of group policy more and more as i have found other programs that now dont work due to file and registry access problems!

    by the way works perfect in windows xp mode but just painfully slow!!!