Click here to Skip to main content
15,902,938 members
Home / Discussions / C#
   

C#

 
AnswerRe: installation of c# project Pin
dan!sh 17-Jun-10 5:36
professional dan!sh 17-Jun-10 5:36 
QuestionNeed to call methods in Java classes Pin
Adam Brown 317-Jun-10 4:34
Adam Brown 317-Jun-10 4:34 
AnswerRe: Need to call methods in Java classes Pin
dan!sh 17-Jun-10 4:48
professional dan!sh 17-Jun-10 4:48 
Questionhow to detect a remote assistance session programatically Pin
Hert17-Jun-10 2:46
Hert17-Jun-10 2:46 
AnswerRe: how to detect a remote assistance session programatically Pin
dan!sh 17-Jun-10 4:55
professional dan!sh 17-Jun-10 4:55 
AnswerRe: how to detect a remote assistance session programatically Pin
Bernhard Hiller17-Jun-10 5:04
Bernhard Hiller17-Jun-10 5:04 
GeneralRe: how to detect a remote assistance session programatically Pin
Hert17-Jun-10 20:35
Hert17-Jun-10 20:35 
QuestionAxhost problem with unregistered ocx Pin
aevanscambs17-Jun-10 2:32
aevanscambs17-Jun-10 2:32 
Hi, I have got a strange problem when using a AxHost wrapped activex control.

We normally access this control from multiple c# threads, and have never had a problem with this until now. But after adding a manifest file to the .exe in order to enable reg-free COM (so we don't have to register the activeX control on customer machines), the control will now crash when accessed from any background thread as long as it is not registered on the current machine. If it is registered then it can be used from multiple threads just fine.

Any help would be appreciated as this is a very strange problem, perhaps I am missing something from the manifest file?

The manifest file contains a "file" entry which points to the relevent .ocx file, with a "comClass" subitem, with "clsid" set as required and "threadingModel" set to "Apartment" (changing the threading model doesn't seem to have any affect on this behaviour).

For example:

public Form1()
{
    InitializeComponent();
    control = new AxLib.AxControl();
    control.Dock = DockStyle.Fill;
    this.Controls.Add(control);

    control.CreateControl();
}

private void Form1_Load(object sender, EventArgs e)
{  
    control.DoSomething(); // Works fine whether or not control is registered on current machine
       
    myThread = new Thread(myThread_ThreadStart);
    myThread.Start();
}

void myThread_ThreadStart(object arg)
{
    control.DoSomething(); // Crashes if control is not registered on current machine
}

AnswerMessage Closed Pin
17-Jun-10 2:56
stancrm17-Jun-10 2:56 
GeneralRe: Axhost problem with unregistered ocx Pin
aevanscambs17-Jun-10 3:22
aevanscambs17-Jun-10 3:22 
Questiontime independent text animation Pin
sleeping_b17-Jun-10 2:01
sleeping_b17-Jun-10 2:01 
GeneralRe: time independent text animation Pin
harold aptroot17-Jun-10 4:29
harold aptroot17-Jun-10 4:29 
AnswerRe: time independent text animation Pin
Dave Kreskowiak17-Jun-10 4:37
mveDave Kreskowiak17-Jun-10 4:37 
GeneralRe: time independent text animation Pin
Ennis Ray Lynch, Jr.17-Jun-10 5:46
Ennis Ray Lynch, Jr.17-Jun-10 5:46 
GeneralRe: time independent text animation Pin
Luc Pattyn17-Jun-10 6:50
sitebuilderLuc Pattyn17-Jun-10 6:50 
GeneralRe: time independent text animation Pin
Ennis Ray Lynch, Jr.17-Jun-10 7:39
Ennis Ray Lynch, Jr.17-Jun-10 7:39 
GeneralRe: time independent text animation Pin
Dave Kreskowiak17-Jun-10 7:27
mveDave Kreskowiak17-Jun-10 7:27 
QuestionHow can I make a resx library? Pin
Gonzalo Cao17-Jun-10 1:07
Gonzalo Cao17-Jun-10 1:07 
AnswerRe: How can I make a resx library? Pin
Łukasz Nowakowski17-Jun-10 2:09
Łukasz Nowakowski17-Jun-10 2:09 
GeneralRe: How can I make a resx library? Pin
Gonzalo Cao17-Jun-10 3:29
Gonzalo Cao17-Jun-10 3:29 
QuestionCopy exception details Visual Studio 2008 Pin
billu 217-Jun-10 0:10
billu 217-Jun-10 0:10 
AnswerRe: Copy exception details Visual Studio 2008 Pin
Praveen Raghuvanshi17-Jun-10 0:35
professionalPraveen Raghuvanshi17-Jun-10 0:35 
Questionget the copyright information Pin
Jassim Rahma16-Jun-10 23:13
Jassim Rahma16-Jun-10 23:13 
AnswerRe: get the copyright information Pin
Hristo-Bojilov16-Jun-10 23:23
Hristo-Bojilov16-Jun-10 23:23 
AnswerRe: get the copyright information Pin
Luc Pattyn17-Jun-10 1:46
sitebuilderLuc Pattyn17-Jun-10 1:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.