.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 12th, 2004, 11:57 AM
JakeLamb JakeLamb is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 4 JakeLamb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
CMemoryException solution

I have an issue that I cannot resolve. I'm testing a very large database object. It is a requirement that multiple instances of this object be created concurrently. Inititally I had been been getting a CMemoryException error when only two instances of the object were created. I then changed the paging file size to the Win2000 max of 4095 MB. This allowed me to create 6 instances of the object. However, I need to be able to create at least 10 instances concurrently, so I altered the registry file to use two page files created in separate directories on the C drive. Still, I am only able to create six instances of the object. Could this be due to a hardware constraint? Thanks.

Jake

Reply With Quote
  #2  
Old October 12th, 2004, 12:05 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Canada
Posts: 330 Viper_SB User rank is Private First Class (20 - 50 Reputation Level)Viper_SB User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 4 h 51 m 6 sec
Reputation Power: 5
Doubt it'd be hardware, perhaps see if your database is limited it to 6 max connections per ip.

Reply With Quote
  #3  
Old October 12th, 2004, 01:28 PM
JakeLamb JakeLamb is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 4 JakeLamb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by Viper_SB
Doubt it'd be hardware, perhaps see if your database is limited it to 6 max connections per ip.

Nope, it's not that. I coded the entire database myself. The online functionality has yet to be implemented. All 10 instances are created on the same system and answer dummy queries for the time being. Another point that may be helpful: when initializing the system, the memory useage as displayed in Task manager only indicates 2.1 GB used of 8.0 GB available when I get the CMemoryException. It never maxes out the available memory.

Reply With Quote
  #4  
Old October 12th, 2004, 01:51 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Canada
Posts: 330 Viper_SB User rank is Private First Class (20 - 50 Reputation Level)Viper_SB User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 4 h 51 m 6 sec
Reputation Power: 5
You may want to try asking over at Devshed's .NET forum and/or ASPfree's .NET forum.
(both are part of the Developer Shed network as is this one) but those 2 are more active. Hopefully we can get this place a bit more active.

Reply With Quote
  #5  
Old October 12th, 2004, 02:06 PM
JakeLamb JakeLamb is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 4 JakeLamb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I appreciate the tip. I'll give it a try.

Quote:
Originally Posted by Viper_SB
You may want to try asking over at Devshed's .NET forum and/or ASPfree's .NET forum.
(both are part of the Developer Shed network as is this one) but those 2 are more active. Hopefully we can get this place a bit more active.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > CMemoryException solution


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway