Thread: purify filesystemwatcher

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    32

    purify filesystemwatcher

    Hi guys, has anyone tried to purify filesystemwatcher code? I changed the common language runtime support to clr, but when running this i got a whole bunch of errors such as :

    Purify: While processing file C:\WINNT\assembly\NativeImages_v2.0.50727_32\mscor lib\9adb89fa22fd5b4ce433b5aca7fb1b07\mscorlib.ni.d ll:
    Error: Read only 0 bytes, out of 0, from file C:\WINNT\assembly\NativeImages_v2.0.50727_32\mscor lib\9adb89fa22fd5b4ce433b5aca7fb1b07\mscorlib.ni.d ll.

    i then set the common language runtime support to Pure MSIL Common Language Runtime Support (/clrure) , this got rid of the error message but i still do not get any results of memory leak issues displayed...

    any help you can give would greatly be appreciated,
    many thanks

  2. #2
    Registered User
    Join Date
    Jul 2010
    Posts
    32
    also i have noticed when one of the event handlers are invoked the process size gets larger.... (this is the example code on the msdn site i am running)
    br

  3. #3
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    What do you expect Purify to do? The process size getting larger is probably not a leak, but the garbage collector at work. Did you include a real memory leak to check if Purify will find it?
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  4. #4
    Registered User
    Join Date
    Jul 2010
    Posts
    32
    Hi there,
    i tried that already but purifier does not display any results at all, i am using visual studio 2008 btw. I am using IBM rational purifyplus. Has anyone else managed to purify the code in here:
    FileSystemWatcher Class (System.IO)
    br

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. multiple files using filesystemwatcher
    By ashaikh432 in forum C# Programming
    Replies: 2
    Last Post: 08-28-2010, 11:15 AM
  2. FileSystemWatcher static functions
    By ashaikh432 in forum C++ Programming
    Replies: 3
    Last Post: 08-25-2010, 11:46 PM
  3. purify code
    By ashaikh432 in forum C++ Programming
    Replies: 3
    Last Post: 08-20-2010, 09:48 AM
  4. Out-of-bound read on printf() reported by purify
    By hzmonte in forum C Programming
    Replies: 3
    Last Post: 05-30-2006, 07:05 PM
  5. Purity? Purify?
    By Jamsan in forum C++ Programming
    Replies: 1
    Last Post: 03-21-2003, 09:51 AM