473,886 Members | 2,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

c# activeX controller hanging tstcon32's exit

Hi,

I've searched the internet high and low for someone else having had
this problem and solved it. But every c# activeX controller sample I
look at shared the same problem. And I can find no mention of it any
where.

When any c# activeX controller is dropped into tstcon32.exe,
tstcon32.exe won't exit. It just hangs in the background. Dispose is
never called.

When the same c# activeX controller is hosted in 3dsMAX through a
MAXScripts rollout, Dispose is only called on 3dsMax's exit. So if you
keep opening and closing a window with the rollout, you will get all
the Disposes called only on 3dsMax's exit. Which means closing the
window isn't clearing the c# activeX controller from memory. Each
openning of the window is creating a new one. Not really a tenable
position....

Any ideas? I've added a destructor (because I understand that is
Finalize in c#), but that flows the same calling pattern. I.e no call
in tstcon32 and only called on exit for 3dsMax.

Surely someone else has hit this, it's in every c# activeX controller I
have seen. What is this and how do I get past it?
I'm not out of ideas, but getting close now.....

Nov 17 '05 #1
0 1127

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1923
by: Craig | last post by:
I am having problems getting an ActiveX DLL written in VB6 to call a method in a C# class library component. My C# DLL is called CSharpProject.dll and contains a public class called CSharpClass. In this class is a single public method that returns the string "Hello from C sharp". My VB6 ActiveX DLL references the C# DLL (CSharpProject.dll) using the
1
1597
by: Andrew Chalk | last post by:
I have written an ActiveX component for a WEB app. that is invoked by an ASP page. Since multiple instances of this page will be requested, are there any special coding practises that I should be aware of? I ask this because it 'crashes' (CPU goes to 100%) after 'a few' hours runtime. Are separate instances of the control invoked with each new page request? Many thanks.
4
2714
by: rufus | last post by:
Hi, On the project I am working on we need to encapsulate all data and business logic in an activex dll. My question is: How do I do this? How can I access the form objects ie text boxes, buttons with a dll? Thanks.
0
810
by: znmaster | last post by:
I've made a ActiveX controller, and embed it in a application programe. When users setup the software, the ActiveX Controller should be registered in their computers automatically. How should I make the setup program to realize this function? Thank you very much!
4
23378
by: fniles | last post by:
I have an ActiveX control in my web page that I tried to access using intranet. I have implemented IObjectSafety in the ActiveX control, and when I created the CAB file using VB Pakage and Deployment Wizard, under "Safety Settings" I selected "Yes" for "Safe for Scripting" and "Yes" for "Safe for Initialization". I also have signed the CAB file. In IE, the option 'Script ActiveX controls marked Safe for Scripting' is already set to...
1
1749
by: OfurGørn | last post by:
I am creating an ActiveX control that should contain a reference to a certain COM interface. I have written before a C# application containing this COM interface but my problem is that it seems not to be possible to add a reference to my COM interface within my vc++ ActiveX controller. Perhaps Im missing some fundemental understanding about ActiveX controllers. So I guess my question is. Is it possible to add a reference to a COM...
1
3093
by: Janiek Buysrogge | last post by:
Hello, I've written a Windows Forms application in .NET 2.0 and am exposing it to COM using the checkbox in Project Properties and by adding some register functions and adding it to the GAC. I'm using the ActiveX Test Container (tstcon32.exe) and I'm able to add the control to the container. All this works, well almost... I'm using some Invoke calls from worker threads that update the GUI. In native .NET this means that stuff is done on...
0
1038
by: DKn | last post by:
Hello All, I am having an ACtiveX Control developed in C#.Net 2.0 windows Control Library. I have tested this control.TCS through ACtiveX Control Test Container. It is working fine, But the logs are getting created in the folder where the TSTCON32.exe is located, instead of creating in the aplication folder. When i Run the application in .Net the logs will be created in the application folder itself. When i attach this (.Net...
0
9956
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10770
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10429
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9592
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7987
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7139
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5808
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4235
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3245
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.