473,732 Members | 2,207 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IExtractImage:E xtract for videos question.

I have my app extracting thumbnails nicely for video and images. I have
noticed however that for video there are 5 threads added everytime I call
extract. And those threads never go away. Also the memory is never freed (or
appears not be freed) when the release is called an all my objects are
cleaned up.

Does anyone know why Extract is adding extra threads for every extract
called for video? It's almost like it's not using the thumbs.db.

Nov 15 '05 #1
1 3051
Scott,

You might want to try and force a GC, using the static Collect method on
the GC class. If you have a lot of COM interop wrappers, and you arent
calling ReleaseComObjec t on them, then the objects never really have been
released properly.

You can see if this is the case by seeing if you have this resource
problem when making the same API calls in unmanaged code.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Scott Andrew" <sc*********@ad elphia.net> wrote in message
news:BC08EBAC.6 F0C%sc********* @adelphia.net.. .
I have my app extracting thumbnails nicely for video and images. I have
noticed however that for video there are 5 threads added everytime I call
extract. And those threads never go away. Also the memory is never freed (or appears not be freed) when the release is called an all my objects are
cleaned up.

Does anyone know why Extract is adding extra threads for every extract
called for video? It's almost like it's not using the thumbs.db.

Nov 15 '05 #2

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

Similar topics

0
1538
by: Guy Robinson | last post by:
Hello, I revist this every now and then and are still no closer to getting it to work. I want to extract the thumbnail from a file on windows using either win32com or ctypes. As described in this link: http://www.vbaccelerator.com/home/NET/Code/Libraries/Shell_Projects/Thumbnail_Extraction/article.asp Has anyone implemented this? Or can explain how to do this. Basically it involves calling IExtractImage from shell32. But I'm not sure...
6
4589
by: Sharon | last post by:
Hi all. My goal is to convert html elements to bitmap. So the first step would be to parse the html. System.Windows.Forms.WebBrowser even has a method called DrawToBitmap, which makes the whole thing much easier. The problem is that WebBrowser cannot be used in a dll. I can understand why WebBrowser is in System.Windows.Forms namespace, but i don't understand how classes like HtmlElement belong to System.Windows.Forms. So my questions...
2
3934
by: Keith Smith | last post by:
How can I have a box (maybe a picture box or a panel or something?) that will display all of the contents of a particular folder and show the picture files as thumbnails along with the name of the file right below them? I then need to be able to drag each item onto another picture box (or something similar) where the picture will be displayed. How can I accomplish this? I have c#
0
256
by: Ed Neary | last post by:
When I attempt to extract a thumbnail from a simple JPG in Windows 2000 I get an error. This works fine in Windows XP and 2003 Server. The error is 0x80004002 - "No such interface supported". I have called ::CoInitializeEx(NULL, COINIT_MULTITHREADED); before running this code. Below is the code snippet showing the failure DWORD dwPriority = 0;
3
1411
by: TheLetti | last post by:
Hello out there, is there any possibility for me to catch or avoid crashes caused within unmanaged code? The situation: I'm writing a managed wrapper in MC++, and in there I use some unmanaged COM methods for creating thumbnails. The problem: One special line may cause a crash, and subsequently
0
5494
by: rose.kevin | last post by:
Hi I am trying to get Windows Explorer to display thumbnails for my own custom filetype. I have found plenty examples out there telling me how to extract thumbnails from explorer for your own use, but I want to go the other way around. I have implemented the IExtractImage interface:
5
12046
by: sejal17 | last post by:
Hello Friends, I want Application that displays an image preview of a Word document (Like thumbnail View of word document) Following is my code but i got error on bold part of code Imports System Imports System.Text
0
8946
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
9447
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9307
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...
1
9235
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8186
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
6735
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
6031
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();...
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
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.