Alaska Software Inc. - Recall MemWatch
Username: Password:
AuthorTopic: Recall MemWatch
M.B. BaijuRecall MemWatch
on Thu, 15 Mar 2018 03:56:52 +0100
Hi,

After Closing Memwatch Windows, how do we recall the same ?

My procedure is this way

****************
PROC MEM()
****************
IF !IsFunction("CreateMemWatch")
	DllLoad( "memwatch.dll" )   //It is working..
ELSE
            &("CreateMemWatch()")    Here get error.
ENDIF
RETURN

First time it works, second time it gets error.

oError:args         :
          -> VALTYPE: O CLASS: thread
oError:canDefault   : N
oError:canRetry     : N
oError:canSubstitute: Y
oError:cargo        : NIL
oError:description  : Object has no member with this name
oError:filename     : 
oError:genCode      :         26
oError:operation    : CONTINUE
oError:osCode       :          0
oError:severity     :          2
oError:subCode      :       2240
oError:subSystem    : BASE
oError:thread       :          3
oError:tries        :          0
--------------------------------------------------------------------------
----
CALLSTACK:
--------------------------------------------------------------------------
----
Called from CREATEMEMWATCH(1018)
Called from MEM(45)

Getting help is appreciated.

Regards,

M.B.BAIJU

Notes: Is there any documentation regarding Memwatch ?
Peter AlderliestenRe: Recall MemWatch
on Thu, 15 Mar 2018 10:20:57 +0100
> After Closing Memwatch Windows, how do we recall the same ?
> 
> My procedure is this way
> 
> ****************
> PROC MEM()
> ****************
> IF !IsFunction("CreateMemWatch")
> 	DllLoad( "memwatch.dll" )   //It is working..
> ELSE
>             &("CreateMemWatch()")    Here get error.
> ENDIF
> RETURN
> 

Can't find any docs on memwatch(), but this works with me:
IF !IsFunction("CreateMemWatch")
 	DllLoad( "memwatch.dll" )   //It is working..
ELSE
 	DllUnload( "memwatch.dll" )
	sleep(100)
 	DllLoad( "memwatch.dll" )   //It is working..
ENDIF


Regards,
Peter