Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

Philip Patrick

@Philip Patrick
About
Posts
537
Topics
39
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • WMF's IWMReader memory leak?
    P Philip Patrick

    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

    C / C++ / MFC com adobe sysadmin performance question

  • WMF's IWMReader memory leak?
    P Philip Patrick

    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

    C / C++ / MFC com adobe sysadmin performance question

  • WMF's IWMReader memory leak?
    P Philip Patrick

    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 call Close and Release 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

    C / C++ / MFC com adobe sysadmin performance question

  • Learn to program for free?
    P Philip Patrick

    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

    The Lounge csharp learning html database

  • Which OS are you?
    P Philip Patrick

    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

    The Lounge php css com linux algorithms

  • Where in the world have you already been?
    P Philip Patrick

    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

    The Lounge question java com tools career

  • <NNATE></INNATE>...
    P Philip Patrick

    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

    The Lounge question com

  • Linux is not free anymore..
    P Philip Patrick

    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

    The Lounge html com sysadmin linux question

  • .NET Performance
    P Philip Patrick

    I actually was talking about "open source", that can improve performance. Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer

    The Lounge csharp c++ dotnet sysadmin sales

  • .NET Performance
    P Philip Patrick

    Joey 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

    The Lounge csharp c++ dotnet sysadmin sales

  • Boost 1.30.1 (bugfix release)
    P Philip Patrick

    Errr... but what is that? :-D :-D :-D Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer

    The Lounge announcement discussion

  • Just out of interest
    P Philip Patrick

    Lol, 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

    The Lounge csharp visual-studio com question

  • Site maintenence notification to users.
    P Philip Patrick

    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

    ASP.NET csharp asp-net tutorial

  • Site maintenence notification to users.
    P Philip Patrick

    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

    ASP.NET csharp asp-net tutorial

  • Problems parsing parameters through Request.QueryString
    P Philip Patrick

    Have 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

    ASP.NET database tutorial design json help

  • MSDE PROBLEM
    P Philip Patrick

    which 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

    ASP.NET question csharp asp-net security help

  • Strategy of usage SqlConnection in Web-forms application
    P Philip Patrick

    Not 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

    ASP.NET database question csharp asp-net sql-server

  • How to find the application URL
    P Philip Patrick

    Yeah, this function only for control. Anyway, try this: Request.ApplicationPath Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer

    ASP.NET question csharp asp-net windows-admin tutorial

  • How to get the columns except one
    P Philip Patrick

    Alexandre 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

    Database question tutorial

  • Data type mismatch in criteria expression.
    P Philip Patrick

    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

    ASP.NET database help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups