Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

War is never imperative. -- McCoy, "Balance of Terror", stardate 1709.2


devel / comp.lang.xharbour / Re: PlaySound increases memory with some HDMI drivers

SubjectAuthor
* Re: PlaySound increases memory with some HDMI driversEnrico Maria Giordano
`* Re: PlaySound increases memory with some HDMI driversdlzc
 `* Re: PlaySound increases memory with some HDMI driversEnrico Maria Giordano
  `* Re: PlaySound increases memory with some HDMI driversdlzc
   `* Re: PlaySound increases memory with some HDMI driversDelphi Jobs
    `- Re: PlaySound increases memory with some HDMI driversdlzc

1
Re: PlaySound increases memory with some HDMI drivers

<tmnn6q$8pcf$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17164&group=comp.lang.xharbour#17164

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: PlaySound increases memory with some HDMI drivers
Date: Tue, 6 Dec 2022 16:30:35 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <tmnn6q$8pcf$1@dont-email.me>
References: <378fcb71-2a1b-40b4-a6dd-2ff91a06cbf1n@googlegroups.com>
<236a0032-34f6-4739-9b97-0f9fb1677229n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 6 Dec 2022 15:30:34 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="12176fa39b5463ce3e1b4f6c7c9aa63d";
logging-data="288143"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185D+kPuwsh861WYZ5hVHxn"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.5.1
Cancel-Lock: sha1:n9q81iAjDfuR//5D2P2Cw6nwqNI=
In-Reply-To: <236a0032-34f6-4739-9b97-0f9fb1677229n@googlegroups.com>
 by: Enrico Maria Giordan - Tue, 6 Dec 2022 15:30 UTC

Il 06/12/2022 15:32, dlzc ha scritto:

> So you are allocating memory, but not releasing it. Or could use STATIC / LOCAL variables, that are defined once.
>
>> LPCSTR pszSound = ( hb_pcount()>0 && ISCHAR(1) )? hb_parc(1):NULL;
>
> You have just allocated memory, pszSound

You are confusing xHarbour code and C code. For me the problem is in the
PlaySound() function that I don't know what it does.

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: PlaySound increases memory with some HDMI drivers

<dab71865-697d-4106-83b2-9a24709358abn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17165&group=comp.lang.xharbour#17165

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:622a:995:b0:3a6:8f15:54ff with SMTP id bw21-20020a05622a099500b003a68f1554ffmr24289364qtb.612.1670345517217;
Tue, 06 Dec 2022 08:51:57 -0800 (PST)
X-Received: by 2002:a25:40d6:0:b0:6fe:9fce:aafb with SMTP id
n205-20020a2540d6000000b006fe9fceaafbmr14773792yba.402.1670345517044; Tue, 06
Dec 2022 08:51:57 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Tue, 6 Dec 2022 08:51:56 -0800 (PST)
In-Reply-To: <tmnn6q$8pcf$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=68.107.209.13; posting-account=7bF0GwoAAABMFHX6V4fON4-1F6LFJ834
NNTP-Posting-Host: 68.107.209.13
References: <378fcb71-2a1b-40b4-a6dd-2ff91a06cbf1n@googlegroups.com>
<236a0032-34f6-4739-9b97-0f9fb1677229n@googlegroups.com> <tmnn6q$8pcf$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <dab71865-697d-4106-83b2-9a24709358abn@googlegroups.com>
Subject: Re: PlaySound increases memory with some HDMI drivers
From: dlzc1@cox.net (dlzc)
Injection-Date: Tue, 06 Dec 2022 16:51:57 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2150
 by: dlzc - Tue, 6 Dec 2022 16:51 UTC

Dear Enrico:

On Tuesday, December 6, 2022 at 8:32:35 AM UTC-7, Enrico Maria Giordano wrote:
> Il 06/12/2022 15:32, dlzc ha scritto:
>
> > So you are allocating memory, but not releasing it. Or could
> > use STATIC / LOCAL variables, that are defined once.
> >
> >> LPCSTR pszSound = ( hb_pcount()>0 && ISCHAR(1) )? hb_parc(1):NULL;
> >
> > You have just allocated memory, pszSound

> You are confusing xHarbour code and C code.
.... the Newsgroup they are asking on. How are these variables defined, made 'LOCAL' in C? In the function definition, right?

https://www.geeksforgeeks.org/variables-in-c/
.... looks like "STATIC" is a better choice, and lose the 'release' suggestion.

> For me the problem is in the
> PlaySound() function that I don't know what it does.

Could be a non-trivial memory leak there too, sure. Sound files are often large. Maybe log free memory before and after each call?

David A. Smith

Re: PlaySound increases memory with some HDMI drivers

<tmnvc7$9jtl$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17166&group=comp.lang.xharbour#17166

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: PlaySound increases memory with some HDMI drivers
Date: Tue, 6 Dec 2022 18:50:01 +0100
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <tmnvc7$9jtl$1@dont-email.me>
References: <378fcb71-2a1b-40b4-a6dd-2ff91a06cbf1n@googlegroups.com>
<236a0032-34f6-4739-9b97-0f9fb1677229n@googlegroups.com>
<tmnn6q$8pcf$1@dont-email.me>
<dab71865-697d-4106-83b2-9a24709358abn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 6 Dec 2022 17:49:59 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="12176fa39b5463ce3e1b4f6c7c9aa63d";
logging-data="315317"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19X9hObCckEFxjHulKUMsMK"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.5.1
Cancel-Lock: sha1:umdUzdhB1C/HGvn52kKC15SHsk8=
In-Reply-To: <dab71865-697d-4106-83b2-9a24709358abn@googlegroups.com>
 by: Enrico Maria Giordan - Tue, 6 Dec 2022 17:50 UTC

Il 06/12/2022 17:51, dlzc ha scritto:

>> You are confusing xHarbour code and C code.
>
> ... the Newsgroup they are asking on. How are these variables defined, made 'LOCAL' in C? In the function definition, right?

They are already defined as the C equivalent of LOCAL. There is no
memory leak in that code. The only place where it could be is, as I
alredy wrote, the unknown function PlaySound().

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: PlaySound increases memory with some HDMI drivers

<bab3f72f-6bf8-4f97-962f-15994196d22an@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17167&group=comp.lang.xharbour#17167

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:6214:3383:b0:4c6:dd9:586c with SMTP id mv3-20020a056214338300b004c60dd9586cmr60803072qvb.40.1670356962935;
Tue, 06 Dec 2022 12:02:42 -0800 (PST)
X-Received: by 2002:a0d:e808:0:b0:358:36cc:b6cf with SMTP id
r8-20020a0de808000000b0035836ccb6cfmr1346056ywe.505.1670356962737; Tue, 06
Dec 2022 12:02:42 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Tue, 6 Dec 2022 12:02:42 -0800 (PST)
In-Reply-To: <tmnvc7$9jtl$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=68.107.209.13; posting-account=7bF0GwoAAABMFHX6V4fON4-1F6LFJ834
NNTP-Posting-Host: 68.107.209.13
References: <378fcb71-2a1b-40b4-a6dd-2ff91a06cbf1n@googlegroups.com>
<236a0032-34f6-4739-9b97-0f9fb1677229n@googlegroups.com> <tmnn6q$8pcf$1@dont-email.me>
<dab71865-697d-4106-83b2-9a24709358abn@googlegroups.com> <tmnvc7$9jtl$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bab3f72f-6bf8-4f97-962f-15994196d22an@googlegroups.com>
Subject: Re: PlaySound increases memory with some HDMI drivers
From: dlzc1@cox.net (dlzc)
Injection-Date: Tue, 06 Dec 2022 20:02:42 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2050
 by: dlzc - Tue, 6 Dec 2022 20:02 UTC

On Tuesday, December 6, 2022 at 10:50:01 AM UTC-7, Enrico Maria Giordano wrote:
> Il 06/12/2022 17:51, dlzc ha scritto:
>
> >> You are confusing xHarbour code and C code.
> >
> > ... the Newsgroup they are asking on. How are these variables defined,
> > made 'LOCAL' in C? In the function definition, right?

> They are already defined as the C equivalent of LOCAL. There is no
> memory leak in that code. The only place where it could be is, as I
> alredy wrote, the unknown function PlaySound().

Agreed on PlaySound. I find a thread on MSN that cite it (presumably built-in language function) as 1 Meg with every call, but might be out-of-date.

Thanks for your persistence / tolerance.

David A. Smith (I don't do C, it makes me C-sick.)

Re: PlaySound increases memory with some HDMI drivers

<0ae4609e-8068-46ac-aedd-9c4441dae00dn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17168&group=comp.lang.xharbour#17168

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:26a4:b0:6fc:b1fd:c7e1 with SMTP id c36-20020a05620a26a400b006fcb1fdc7e1mr17483312qkp.627.1670366818025;
Tue, 06 Dec 2022 14:46:58 -0800 (PST)
X-Received: by 2002:a81:4b82:0:b0:37e:7e54:e5fe with SMTP id
y124-20020a814b82000000b0037e7e54e5femr2498096ywa.473.1670366817690; Tue, 06
Dec 2022 14:46:57 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Tue, 6 Dec 2022 14:46:57 -0800 (PST)
In-Reply-To: <bab3f72f-6bf8-4f97-962f-15994196d22an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=108.29.161.242; posting-account=1OKapAoAAACq8A__yPNSywRr323DuXKp
NNTP-Posting-Host: 108.29.161.242
References: <378fcb71-2a1b-40b4-a6dd-2ff91a06cbf1n@googlegroups.com>
<236a0032-34f6-4739-9b97-0f9fb1677229n@googlegroups.com> <tmnn6q$8pcf$1@dont-email.me>
<dab71865-697d-4106-83b2-9a24709358abn@googlegroups.com> <tmnvc7$9jtl$1@dont-email.me>
<bab3f72f-6bf8-4f97-962f-15994196d22an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0ae4609e-8068-46ac-aedd-9c4441dae00dn@googlegroups.com>
Subject: Re: PlaySound increases memory with some HDMI drivers
From: programdelphi@gmail.com (Delphi Jobs)
Injection-Date: Tue, 06 Dec 2022 22:46:58 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2473
 by: Delphi Jobs - Tue, 6 Dec 2022 22:46 UTC

On Tuesday, December 6, 2022 at 3:02:43 PM UTC-5, dlzc wrote:
> On Tuesday, December 6, 2022 at 10:50:01 AM UTC-7, Enrico Maria Giordano wrote:
> > Il 06/12/2022 17:51, dlzc ha scritto:
> >
> > >> You are confusing xHarbour code and C code.
> > >
> > > ... the Newsgroup they are asking on. How are these variables defined,
> > > made 'LOCAL' in C? In the function definition, right?
>
> > They are already defined as the C equivalent of LOCAL. There is no
> > memory leak in that code. The only place where it could be is, as I
> > alredy wrote, the unknown function PlaySound().
> Agreed on PlaySound. I find a thread on MSN that cite it (presumably built-in language function) as 1 Meg with every call, but might be out-of-date.
>
> Thanks for your persistence / tolerance.
>
> David A. Smith (I don't do C, it makes me C-sick.)

Hi All and thanks so much for the help
I did not have a chance yet to test

I believe playSound took over the Microsoft legacy sndPlaySound
http://www.jasinskionline.com/windowsapi/ref/s/sndplaysound.html

Re: PlaySound increases memory with some HDMI drivers

<43764a68-f4a8-47a7-b768-79f5bbce6fd2n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17169&group=comp.lang.xharbour#17169

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a37:2c85:0:b0:6ef:1b80:ac9b with SMTP id s127-20020a372c85000000b006ef1b80ac9bmr66043766qkh.773.1670423725533;
Wed, 07 Dec 2022 06:35:25 -0800 (PST)
X-Received: by 2002:a25:2d42:0:b0:6f4:5736:e107 with SMTP id
s2-20020a252d42000000b006f45736e107mr48014769ybe.621.1670423725276; Wed, 07
Dec 2022 06:35:25 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Wed, 7 Dec 2022 06:35:24 -0800 (PST)
In-Reply-To: <0ae4609e-8068-46ac-aedd-9c4441dae00dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=68.107.209.13; posting-account=7bF0GwoAAABMFHX6V4fON4-1F6LFJ834
NNTP-Posting-Host: 68.107.209.13
References: <378fcb71-2a1b-40b4-a6dd-2ff91a06cbf1n@googlegroups.com>
<236a0032-34f6-4739-9b97-0f9fb1677229n@googlegroups.com> <tmnn6q$8pcf$1@dont-email.me>
<dab71865-697d-4106-83b2-9a24709358abn@googlegroups.com> <tmnvc7$9jtl$1@dont-email.me>
<bab3f72f-6bf8-4f97-962f-15994196d22an@googlegroups.com> <0ae4609e-8068-46ac-aedd-9c4441dae00dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <43764a68-f4a8-47a7-b768-79f5bbce6fd2n@googlegroups.com>
Subject: Re: PlaySound increases memory with some HDMI drivers
From: dlzc1@cox.net (dlzc)
Injection-Date: Wed, 07 Dec 2022 14:35:25 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1986
 by: dlzc - Wed, 7 Dec 2022 14:35 UTC

On Tuesday, December 6, 2022 at 3:46:59 PM UTC-7, Delphi Jobs wrote:
> Hi All and thanks so much for the help
> I did not have a chance yet to test
>
> I believe playSound took over the Microsoft legacy sndPlaySound
> http://www.jasinskionline.com/windowsapi/ref/s/sndplaysound.html

It is entirely possible it is just a wrapper problem, since PlaySound is also a WIN32 control. Should not be a leak in the Windoze code itself...
https://learn.microsoft.com/en-us/windows/win32/multimedia/using-playsound-to-play-system-sounds

David A. Smith

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor