AVAX-software.com Forums: Low Memory Back! - AVAX-software.com Forums

Jump to content

Page 1 of 1

Low Memory Back!

#1 User is offline   Crystallyne Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 29-December 06

Post icon  Posted 12 March 2008 - 08:25 PM

We're seeing the Low Memory error popping up now, whereas we didn't have it before the last update. We're using VS .Net 2003, so when you corrected it for 2008 that might've caused a problem.

We would really like to use the new Curve-Arc so if you could fix this very quickly it would be much appreciated.

#2 User is offline   Athanasios Gardos Icon

  • Administrator
  • Icon
  • Group: Admin
  • Posts: 333
  • Joined: 21-March 05
  • Gender:Male

Posted 13 March 2008 - 08:34 AM

You are using the following VB6 code to check the memory:
Private Declare Sub GlobalMemoryStatus Lib "kernel32" (lpBuffer As MEMORYSTATUS)

Private Type MEMORYSTATUS
	dwLength As Long
	dwMemoryLoad As Long
	dwTotalPhys As Long
	dwAvailPhys As Long
	dwTotalPageFile As Long
	dwAvailPageFile As Long
	dwTotalVirtual As Long
	dwAvailVirtual As Long
End Type

Private Sub Form_Load()
	Call CheckMemory
End Sub

Private Function CheckMemory() As Boolean
	Dim memInfo As MEMORYSTATUS
	Dim lKbytes As Long
	Static OneTime As Integer
	Call GlobalMemoryStatus(memInfo)
	lKbytes = memInfo.dwAvailPhys / 1024
	If lKbytes < 10000 And lKbytes > 0 Then
	   CheckMemory = True
	   If OneTime = 0 Then
		  MsgBox "Low memory...", vbCritical, App.ProductName
		  OneTime = 1
	   End If
	End If
End Function

Can you please see where is the problem?
Thanks
Athanasios Gardos
Avax-Software.com

#3 User is offline   Crystallyne Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 29-December 06

Posted 14 March 2008 - 08:52 PM

I will see what we can do. We had already rolled-back to the previous version though so this may take a couple days.

View PostAthanasios Gardos, on Mar 13 2008, 04:34 AM, said:

You are using the following VB6 code to check the memory:
Private Declare Sub GlobalMemoryStatus Lib "kernel32" (lpBuffer As MEMORYSTATUS)

Private Type MEMORYSTATUS
	dwLength As Long
	dwMemoryLoad As Long
	dwTotalPhys As Long
	dwAvailPhys As Long
	dwTotalPageFile As Long
	dwAvailPageFile As Long
	dwTotalVirtual As Long
	dwAvailVirtual As Long
End Type

Private Sub Form_Load()
	Call CheckMemory
End Sub

Private Function CheckMemory() As Boolean
	Dim memInfo As MEMORYSTATUS
	Dim lKbytes As Long
	Static OneTime As Integer
	Call GlobalMemoryStatus(memInfo)
	lKbytes = memInfo.dwAvailPhys / 1024
	If lKbytes < 10000 And lKbytes > 0 Then
	   CheckMemory = True
	   If OneTime = 0 Then
		  MsgBox "Low memory...", vbCritical, App.ProductName
		  OneTime = 1
	   End If
	End If
End Function

Can you please see where is the problem?
Thanks


#4 User is offline   Crystallyne Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 29-December 06

Posted 18 March 2008 - 11:50 PM

We are still working to replicate the error with that code in place so we can give you more information. Since all of our programming machines have very large amounts of memory, we have not been able to get the error to appear for us at all so we have to have the clients run the one with the error and have them report the information back.

We have no reports of the error occuring after rolling-back to the previous version of Avax, so we are fairly certain the problem is confined to the newest version.

Users reported that it does not appear to happen on just form load. Users have also reported it to appear when they are not even using the program and it is sitting idle. Also it has appeared when drawing items. The one time we were able to replicate the error in house actually occurred during our compile of the program in which we use the Avax control.

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users