Using the latest version. But... Now it is something I don't understand at all. The "memory leak" is really depend on the source. I found sources that the same code doesn't produce any leak and sources that it does (all of them have a video stream). Not sure what happens here. Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
Philip Patrick
Posts
-
WMF's IWMReader memory leak? -
WMF's IWMReader memory leak?Well it happens every time I create and open IWMReader. For example (not the full code, just to keep it simple):
WMCreateReader(NULL, WMT_RIGHT_PLAYBACK, &pReader);
pReader->Open(L"URL");
pReader->Close();
pReader->Release();put this in loop and you get the memory to 100Mb in just a few minutes. But if you won't call Release (and of course won't create it again), mean just Open and Close, then everything is ok. I'll try your suggestion though tomorrow at work. Will see if this is the problem. Thank you :) Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
WMF's IWMReader memory leak?Anyone experienced any problems (memory leaks in my case) with Windows Media Format SDK? I'm using it to retrieve content from network and write to local disk, but looks like it has a memory leak. This is the code I use:
IWMReader\* pReader = NULL; m\_hEvent = CreateEvent(NULL, FALSE, FALSE, NULL); HRESULT hr = WMCreateReader(NULL, WMT\_RIGHT\_PLAYBACK, &pReader); pReader->Open(L"some\_url\_here", this, NULL); WaitForSingleObject(m\_hEvent, 60000); pReader->Close(); pReader->Release(); CloseHandle(m\_hEvent);
Both callback functions (OnStatus and OnSample) are empty, just returning S_OK. You see, I'm not starting it, only opening. After I call
Open
function, memory jumps for about 2.5Mb. When I callClose
andRelease
it goes down around 1.Mb, leaving 1.5Mb in "air". Anyone knows about this? Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer -
Learn to program for free?Check also www.asp.net[^], there are lots of articles and tutorials, including a basic one. As well as you can download the free development tool for ASP.NET from there - it called WebMatrix Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
Which OS are you?Doh.... You are Slackware Linux. You are the brightest among your peers, but are often mistaken as insane. Your elegant solutions to problems often take a little longer, but require much less effort to complete Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
Where in the world have you already been?Only in Czech, Russia, Bulgaria and Israel (I live in Israel) :(( Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
<NNATE></INNATE>...What you mean actually? I see a lot of shit in that PDF, which one you mean? :) Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
Linux is not free anymore..I hope this is not re-post, I searched the forums before posting this. SCO published prices for Linux. First of all, there is no permission to redustribute the source code - only binary. Workstation will cost 199$, Server version will cost 699$. Source: http://www.sco.com/scosource/description.html[^] Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
.NET PerformanceI actually was talking about "open source", that can improve performance. Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
.NET PerformanceJoey Bloggs wrote: What I do know is that if ms had developed all the appropriate libraries in open source c++ along with a new compiler. We would all be better of. I don't understand, how this can improve performance? Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
Boost 1.30.1 (bugfix release)Errr... but what is that? :-D :-D :-D Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
Just out of interestLol, now Chris will get a lot of automatic mails about error in search_comments.asp :) But wondering why that would happen? Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
Site maintenence notification to users.Well, I haven't checked with ASP.NET, but in pure ASP it worked, since IIS kills all Sessions when you change global.asa. You may try to use ASP (with global.asa, instead of global.asax) if it won't work Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
Site maintenence notification to users.Not that I know, but you can always add a small redirection to some page with notice in global.asax file (in On Session Start handler), then destroy the session on that page. This way, each time the user tries to navigate on your site, he/she will get only the page with notice. Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
Problems parsing parameters through Request.QueryStringHave you encoded them? In Javascript you can do it by calling
encode(string)
function, only then append to url (do not encode the whole url, just the parameters) Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer -
MSDE PROBLEMwhich one you use? I have installed and using the Portal Starter Kit with no problem Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
Strategy of usage SqlConnection in Web-forms applicationNot needed at all. The first way (opening connection each time you need it) is the best one, since ASP.NET do connection pooling. But always CLOSE(!) your connection at the end. The connection pool works this way: It creates a connection for each unique connection string passed, gives it to you if you create one (
new SqlConnection
or such) and returns the connection to pool ONLY when you close it. If the connection remains open, it is not returned to the pool, thus next time you'll require a database connection, it will be created again ( a new one) Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer -
How to find the application URLYeah, this function only for control. Anyway, try this:
Request.ApplicationPath
Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer -
How to get the columns except oneAlexandre Kojevnikov wrote: Think what will happen with your code if you rename some of your table columns or reorder them. So what? If you'll specify all columns in SELECT, you will still need to change your code, then what's the matter? Mike actually pointed the right issue about performance of "*" Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
Data type mismatch in criteria expression.Insert/update your dates in following format: "YYYY/MM/DD HH:MM:SS". This always works on both Access and SQL Server, regardless on locale Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer