views:

538

answers:

0

I have a problem with my ActiveX control. I don't know how solve it.

I am controlling in client whether my ActiveX control is installed below:

try {
    p = new ActiveXObject('MeshControl.ActiveX');
    Te=p.Revision;
    if(MaV>p.MajorVersion || p.MajorVersion.toString()=='undefined') UpdateControl('1');
    else if (MiV>p.MinorVersion)UpdateControl('2');
    else if (Re>p.Revision)UpdateControl('3');
    else UpdateControl('0');
}
catch (e) {
    UpdateControl('4');
}

This is a version control code. But in vista/ie7-ie8, when i request a page, browser not responding there:

 p = new ActiveXObject('MeshControl.ActiveX');

not going "catch" block and nothing happens. So I kill IE in process explorer.

ActiveX is not a COM object, it's assembly ,written in .net.