473,503 Members | 1,849 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

toolbar separator causes System.OutOfMemoryException

ari
I have a small form that comprises a toolbar, a treeview and a status
bar.

Everything was working fine until I decided to add a new button to the
toolbar - and I decided for appearances sake to add a separator button
to distance the new button from the old ones. When I do "show" on the
form (which is an mdi-child) I get the following exception:

System.OutOfMemoryException occurred in system.windows.forms.dll

Additional Information: Error Creating Windows Handle

When I delete the separator, everything works fine again. If I change
the separator into a regular button, it works fine.

Anyone encountered a problem like this? Anyone have any ideas?

I am using framework version 1.1.4322 and visual studio version (2003)
7.1.3088

Feb 26 '06 #1
2 1615
ari wrote:
I have a small form that comprises a toolbar, a treeview and a status
bar.

Everything was working fine until I decided to add a new button to the
toolbar - and I decided for appearances sake to add a separator button
to distance the new button from the old ones. When I do "show" on the
form (which is an mdi-child) I get the following exception:

System.OutOfMemoryException occurred in system.windows.forms.dll

Additional Information: Error Creating Windows Handle

When I delete the separator, everything works fine again. If I change
the separator into a regular button, it works fine.

Anyone encountered a problem like this? Anyone have any ideas?

I am using framework version 1.1.4322 and visual studio version (2003)
7.1.3088

I've had similar experiences with VS2005 under Framework 2.0 except all
my ToolStrip Controls would simply disappear from the ToolStrip and the
only way I could get them back was to revert to an earlier version of
the application!

In my case, it appeared to be caused by a combination of setting
AutoSize=False and adding enough Controls to cause the ToolStrip to
trigger the Overflow Menu.

I overcame it by reducing the Width of individual Controls on the ToolStrip.

Hope this might help you.

ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.
Feb 26 '06 #2
ari
Thanks Shane - I don't think this is the case: I only have four buttons
on the toolbar, and I wanted to add a separator and one more button....

Feb 27 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2729
by: Per Bergland | last post by:
After many woes, I finally managed to get a stack dump of my System Service (written in C#) that insists on crashing when launched at system boot time (see below on how to get this dump - I...
1
4541
by: jason | last post by:
I have exhausted all resources, so perhaps someone out there can help. I have a 8MB string (that represents an html document) and I am trying to run a couple of regular expressions on this...
1
3426
by: Ripul Handa | last post by:
Hi We are running IIS 5.0 cluster with cisco local director. We are running a website on 2 webservers and I have been observing that from past few days we have are getting this error message of...
5
1306
by: Tom Dacon | last post by:
I can't find any hits in groups search on this, so I'll try a fresh post: Vs.Net 2003 has recently started hanging when I try to pin the toolbar. The framework 1.1 service pack 1 has been...
1
4948
by: SMG - Idealake | last post by:
Hi all, I am getting following error on my error, what could be the reason? Exception of type System.OutOfMemoryException was thrown. Description: An unhandled exception occurred during the...
4
2081
by: Ed Chiu | last post by:
Hi, I migrated our company's ASP.Net web appplication from a regular Pentium 4 machine to a multiple xeon processors machine. The web application was acceptable in speed on the old machine, I...
0
933
by: Kejpa | last post by:
Hi, How do I change the width of a separator in a toolbar? The default width is too small for my taste and having a couple of separators or buttons just to make space seems like a waste of...
1
3866
by: Ashkan Daie | last post by:
Hi All, When trying to install a performance counter via InstallUtil I get the following exception: Creating performance counter category Enterprise Library Caching. An exception occurred...
8
12540
by: =?Utf-8?B?UGlnZ3k=?= | last post by:
Hi to all, I am getting this System.OutOfMemoryException calling the Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(<stream>,<Obj>) method. The type of <streamis...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7348
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4685
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.