Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. using /clr switch for ATL application raises an exception when the application is terminating.

using /clr switch for ATL application raises an exception when the application is terminating.

Scheduled Pinned Locked Moved ATL / WTL / STL
csharpc++dotnetcomtools
1 Posts 1 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vijjuuu
    wrote on last edited by
    #1

    Hi, i have created a sample ATL application in VS2010, added ATL Simple object. it has only one method int getVal() { return 10; } i have enabled /clr switch in the project properties and build in release mode. (i have added /clr because i want to consume some objects build in C#.net) after registering the dll, i have consumed the COM object in vbscript. (the code below) dim obj set obj = createobject("MySample.COMSample") msgbox obj.getVal() set obj = nothing this is very simple COM object. if i run the above script, it will show message box "10". once i press ok, there is an popup with an exception message below. --------------------------- WScript.exe - Application Error --------------------------- The exception unknown software exception (0xc0020001) occurred in the application at location 0x7c812aeb. Click on OK to terminate the program --------------------------- OK --------------------------- if i remove /clr switch and build it run the Vbscirpt. i don't see the popup error. any suggestion why there an exception when /clr switch is used ? Thanks in advance.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups