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.
 
Back
Top