how i can change the life time of the com

  • Thread starter Thread starter muhamad
  • Start date Start date
M

muhamad

hi

i use the com AxShockwaveFlashObjects
and i use a thread ,in the thread i use this object ,if i can't use this
more than 5 minutes ,i get a error

i think the problem is in the life time of the com .
my question : how i can change the life time of the com
 
muhamad,

The AxShockwaveFlashObjects are most likely single threaded apartment
objects, and you need to set the apartmentstate of the thread so that it is
single threaded. You can do this by setting the ApartmentState property of
the current thread to ApartmentState.STA.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top