Re: [MSEide-MSEgui-talk] mailing list confirmations emails?

2017-07-19 Thread Martin Schreiber
On Wednesday 19 July 2017 10:05:43 Graeme Geldenhuys wrote:
> Hi Martin,
>
> Is this something you triggered on the mailing list server? Spam? Or
> something SourceForge does?  I am subscribed to a few mailing lists from
> SF.net, and the MSEide+MSEgui mailing list is the only one that sends me
> these emails. I've received two in the last two weeks now.
>
AFAIK something what SourceForge does. I got them for all SourceForge 
mailinglists I registered some years ago. Don't forget to switch off all 
newsletter and the like they want to send you. ;-)

Martin

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Some question about MSE thread...

2017-07-19 Thread Fred van Stappen
Hello Magic Martin.

13633 memory blocks allocated : 5163889/5199872
13633 memory blocks freed : 5163889/5199872
0 unfreed memory blocks : 0
True heap size : 950272
True free heap : 950272

More than many thanks.

You are added in the list of "Great Contributors of uos".

https://github.com/fredvs/uos

Commit: 3acd6e3..ea3fc37

Fre;D


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] mailing list confirmations emails?

2017-07-19 Thread Graeme Geldenhuys


Hi Martin,

Is this something you triggered on the mailing list server? Spam? Or 
something SourceForge does?  I am subscribed to a few mailing lists from 
SF.net, and the MSEide+MSEgui mailing list is the only one that sends me 
these emails. I've received two in the last two weeks now.




-- Forwarded Message -
Subject: Reconfirm subscription to mseide-msegui-talk mailing list
Date: Wed, 19 Jul 2017 00:15:53 +
From: SourceForge.net 
Reply-To: SourceForge.net Support 
To: mail**.co.uk


Hi,

This is a reminder to reconfirm your subscriptions to these mailing lists:

mseide-msegui-talk

If you are still interested in receiving emails from this SourceForge 
project list, you must reconfirm your subscription by July 30.


Please click here to reconfirm your subscription:

https://sourceforge.net/mailman/reconfirm?confirm=c**1bf=mail***.co.uk


Thanks,
The SourceForge Team
A Slashdot Media Company
--[ end ]--

Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Some question about MSE thread...

2017-07-19 Thread Martin Schreiber
On 07/19/2017 02:38 AM, Fred van Stappen wrote:
> 
> It is about mse and memory leak.
> I do not find how to kill those memory leaks, it seems to me that all
> was freed before to close the mse application but I get this, how can I
> debug that ? (huh, it comes with the
> project https://github.com/fredvs/strumpract and I am sure that the
> leaks do not com from uos) :
> 
Compiled with -ghl -O- -B the Output is
"
...
Call trace for block $77FEF860 size 144
  $006A19DD line 2054 of uos_flat.pas
  $004631FE line 670 of main.pas
  $00465742 line 1107 of main.pas
  $00667D7A line 1011 of
../../../mseide-msegui/lib/common/widgets/mseforms.pas
  $0066811A line 1103 of
../../../mseide-msegui/lib/common/widgets/mseforms.pas
  $004A182A line 6753 of
../../../mseide-msegui/lib/common/fpccompatibility/mclasses.pas
  $004FD102 line 2269 of
../../../mseide-msegui/lib/common/kernel/mseclasses.pas
...
"
uos_flat.pas:2054 is
"
   uosPlayers[PlayerIndex] := Tuos_Player.Create();
"
-> uosPlayers[] are not freed.
"

It works for me with
"
diff --git a/src/uos_flat.pas b/src/uos_flat.pas
index 18d0860..c73cd7b 100644
--- a/src/uos_flat.pas
+++ b/src/uos_flat.pas
@@ -1794,7 +1794,9 @@ begin
begin
 uosPlayers[PlayerIndex].Stop() ;
 {$IF DEFINED(mse)}
-  uosPlayers[PlayerIndex] := nil;
+//  uosPlayers[PlayerIndex] := nil;
+  freeandnil(uosPlayers[PlayerIndex]);
+
   uosPlayersStat[PlayerIndex] := -1 ;
  {$endif}
 end;
"

"
diff --git a/src/uos.pas b/src/uos.pas
index 03d08d7..0699c54 100644
--- a/src/uos.pas
+++ b/src/uos.pas
@@ -7844,8 +7844,8 @@ begin
  {$endif}

  {$IF DEFINED(mse)}
- thethread.terminate();
- freeandnil(self);
+// thethread.terminate();
+// freeandnil(self); //the instance is still in use!
   {$else}
   FreeOnTerminate:=True;
   terminate();
@@ -8424,7 +8424,14 @@ destructor Tuos_Player.Destroy;
 var
   x: cint32;
 begin
-
+ {$ifdef mse}
+  if thethread <> nil then begin
+   thethread.terminate();
+   application.waitforthread(thethread);
+//calls unlockall()/relockall in order to avoid possible deadlock
+   thethread.destroy();
+  end;
+ {$endif}
   if assigned(evPause) then RTLeventdestroy(evPause);

   if length(StreamOut) > 0 then
"

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk