Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #4300 > unrolled thread

Video memory

Started by"Er!k \\/!$$Er" <nospam@nospam.url>
First post2012-10-17 09:29 +0200
Last post2012-10-18 07:25 +0000
Articles 5 — 4 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  Video memory "Er!k \\/!$$Er" <nospam@nospam.url> - 2012-10-17 09:29 +0200
    Re: Video memory Willie Moore <williem@wmconsulting.com> - 2012-10-17 12:13 +0000
      Re: Video memory "Er!k \\/!$$Er" <nospam@nospam.url> - 2012-10-17 15:48 +0200
        Re: Video memory Martin <spam@spam.spam> - 2012-10-18 09:21 +0100
    Re: Video memory "Dirk (Belgium)" <dirk.dot.herijgers@pbprojects.dot.be> - 2012-10-18 07:25 +0000

#4300 — Video memory

From"Er!k \\/!$$Er" <nospam@nospam.url>
Date2012-10-17 09:29 +0200
SubjectVideo memory
Message-ID<ae7532FiiacU1@mid.individual.net>
At one of the customers sites a VO apps with lots of drawing 'hangs' a few 
time each day.  It cannot be reproduced.  The program can be closed with the 
closebutton.  (So no need to force a close with the taskmanager) .  There is 
no error message.
I now monitor some recourses , but this does not gives me a clue.
                                                               startup:  At 
hang
Memory(MEMORY_REGISTERAXIT)                402        395
Memory(MEMORY_DYNINFOUSED)/1000            369        357
DynInfoFree()/1000                       16407      16418
MemTotal()/10000                           356        358
(Memory(MEMORY_WINDOWS_SYSTEMRESOURCES)     80        65-67

At the ‘hang’, all controls are gray. A printscreen at this point says:
“insufficient memory available to bitmap image. Close one or more 
applications so that more memory available “
So what memory and how should I monitor to find the cause?  Any other 
suggestions?

Erik 

[toc] | [next] | [standalone]


#4303

FromWillie Moore <williem@wmconsulting.com>
Date2012-10-17 12:13 +0000
Message-ID<1239179402372168623.341935williem-wmconsulting.com@news.aioe.org>
In reply to#4300
Erik,

In my drawing program, I had a leak where I wasn't releasing the bitmap
handle after I created a jpg. You might check your drawing routine to make
sure that
You clean up your drawing handles after an edit. Mine was a pain to figure
out. I was expecting garbage collection to clean up but because I didn't
release an Ibarra that had a reference to my DIB, it didn't happen. 

Hope that this helps. 

Regards,
Willie
Vulcan VIP

"Er!k \\/!$$Er" <nospam@nospam.url> wrote:
> At one of the customers sites a VO apps with lots of drawing 'hangs' a
> few time each day.  It cannot be reproduced.  The program can be closed
> with the closebutton.  (So no need to force a close with the taskmanager)
> .  There is no error message.
> I now monitor some recourses , but this does not gives me a clue.
>                                                               startup:  At hang
> Memory(MEMORY_REGISTERAXIT)                402        395
> Memory(MEMORY_DYNINFOUSED)/1000            369        357
> DynInfoFree()/1000                       16407      16418
> MemTotal()/10000                           356        358
> (Memory(MEMORY_WINDOWS_SYSTEMRESOURCES)     80        65-67
> 
> At the ‘hang’, all controls are gray. A printscreen at this point says:
> “insufficient memory available to bitmap image. Close one or more
> applications so that more memory available “
> So what memory and how should I monitor to find the cause?  Any other suggestions?
> 
> Erik

[toc] | [prev] | [next] | [standalone]


#4304

From"Er!k \\/!$$Er" <nospam@nospam.url>
Date2012-10-17 15:48 +0200
Message-ID<ae7r91Fnm6bU1@mid.individual.net>
In reply to#4303
Hi Willie,
Must be something like that. I now monitor (how to was written in another 
thread) the GDI usage and that increases and increases ...
So I'll have to figure out what causes this.
Thanks a lot,

Erik


"Willie Moore"  schreef in bericht 
news:1239179402372168623.341935williem-wmconsulting.com@news.aioe.org...

Erik,

In my drawing program, I had a leak where I wasn't releasing the bitmap
handle after I created a jpg. You might check your drawing routine to make
sure that
You clean up your drawing handles after an edit. Mine was a pain to figure
out. I was expecting garbage collection to clean up but because I didn't
release an Ibarra that had a reference to my DIB, it didn't happen.

Hope that this helps.

Regards,
Willie
Vulcan VIP

"Er!k \\/!$$Er" <nospam@nospam.url> wrote:
> At one of the customers sites a VO apps with lots of drawing 'hangs' a
> few time each day.  It cannot be reproduced.  The program can be closed
> with the closebutton.  (So no need to force a close with the taskmanager)
> .  There is no error message.
> I now monitor some recourses , but this does not gives me a clue.
>                                                               startup:  At 
> hang
> Memory(MEMORY_REGISTERAXIT)                402        395
> Memory(MEMORY_DYNINFOUSED)/1000            369        357
> DynInfoFree()/1000                       16407      16418
> MemTotal()/10000                           356        358
> (Memory(MEMORY_WINDOWS_SYSTEMRESOURCES)     80        65-67
>
> At the ‘hang’, all controls are gray. A printscreen at this point says:
> “insufficient memory available to bitmap image. Close one or more
> applications so that more memory available “
> So what memory and how should I monitor to find the cause?  Any other 
> suggestions?
>
> Erik 

[toc] | [prev] | [next] | [standalone]


#4312

FromMartin <spam@spam.spam>
Date2012-10-18 09:21 +0100
Message-ID<OZOfs.17638$Sr2.653@fx01.am4>
In reply to#4304
GDI Been there done that

Our leak was with cursors, I ended up creating them at programme start 
and storing them in global variables, took 4 hours to crash with no GDI 
resources.

Use

GetGuiResources(GetCurrentProcess(),GR_GDIOBJECTS)

DEFINE GR_GDIOBJECTS    := 0

This returns used GDI objects count.

On 17/10/2012 14:48, Er!k \/!$$Er wrote:
> Hi Willie,
> Must be something like that. I now monitor (how to was written in
> another thread) the GDI usage and that increases and increases ...
> So I'll have to figure out what causes this.
> Thanks a lot,
>
> Erik
>
>
> "Willie Moore"  schreef in bericht
> news:1239179402372168623.341935williem-wmconsulting.com@news.aioe.org...
>
> Erik,
>
> In my drawing program, I had a leak where I wasn't releasing the bitmap
> handle after I created a jpg. You might check your drawing routine to make
> sure that
> You clean up your drawing handles after an edit. Mine was a pain to figure
> out. I was expecting garbage collection to clean up but because I didn't
> release an Ibarra that had a reference to my DIB, it didn't happen.
>
> Hope that this helps.
>
> Regards,
> Willie
> Vulcan VIP
>
> "Er!k \\/!$$Er" <nospam@nospam.url> wrote:
>> At one of the customers sites a VO apps with lots of drawing 'hangs' a
>> few time each day.  It cannot be reproduced.  The program can be closed
>> with the closebutton.  (So no need to force a close with the taskmanager)
>> .  There is no error message.
>> I now monitor some recourses , but this does not gives me a clue.
>>
>> startup:  At hang
>> Memory(MEMORY_REGISTERAXIT)                402        395
>> Memory(MEMORY_DYNINFOUSED)/1000            369        357
>> DynInfoFree()/1000                       16407      16418
>> MemTotal()/10000                           356        358
>> (Memory(MEMORY_WINDOWS_SYSTEMRESOURCES)     80        65-67
>>
>> At the ‘hang’, all controls are gray. A printscreen at this point says:
>> “insufficient memory available to bitmap image. Close one or more
>> applications so that more memory available “
>> So what memory and how should I monitor to find the cause?  Any other
>> suggestions?
>>
>> Erik
>

[toc] | [prev] | [next] | [standalone]


#4311

From"Dirk (Belgium)" <dirk.dot.herijgers@pbprojects.dot.be>
Date2012-10-18 07:25 +0000
Message-ID<k5oasg$dd9$1@dont-email.me>
In reply to#4300
Erik,

You can use X-Debug.
X-Debug has the possibility to hook almost every lowlevel drawing win32
api function. So, this way you can see which objects are not released
correctly.

Dirk (Belgium)

================================

Er!k \/!$$Er wrote:

> At one of the customers sites a VO apps with lots of drawing 'hangs'
> a few time each day.  It cannot be reproduced.  The program can be
> closed with the closebutton.  (So no need to force a close with the
> taskmanager) .  There is no error message.  I now monitor some
> recourses , but this does not gives me a clue.
> startup:  At hang Memory(MEMORY_REGISTERAXIT)                402
> 395 Memory(MEMORY_DYNINFOUSED)/1000            369        357
> DynInfoFree()/1000                       16407      16418
> MemTotal()/10000                           356        358
> (Memory(MEMORY_WINDOWS_SYSTEMRESOURCES)     80        65-67
> 
> At the ‘hang’, all controls are gray. A printscreen at this point
> says:  “insufficient memory available to bitmap image. Close one or
> more applications so that more memory available “ So what memory
> and how should I monitor to find the cause?  Any other suggestions?
> 
> Erik



-- 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web