We're running Load Runner to test a large 1.0 based WinForms application.
I'm getting the following exception when opening and closing a form 400 -
450 times. The form contains several controls and custom UserControls. All
the code is native C#.
I'm not making an explicit call to ToBitmap or DrawIcon in my code. Can
anyone help?
Exception Caught in Main(): at System.Drawing. Graphics.GetHdc ()
at System.Drawing. Icon.Draw(Graph ics graphics, Rectangle targetRect)
at System.Drawing. Graphics.DrawIc on(Icon icon, Rectangle targetRect)
at System.Drawing. Icon.ToBitmap()
at System.Windows. Forms.ThreadExc eptionDialog..c tor(Exception t)
at System.Windows. Forms.ThreadExc eptionDialog..c tor(Exception t)
at System.Windows. Forms.ThreadCon text.OnThreadEx ception(Excepti on t)
at System.Windows. Forms.Control.W ndProcException (Exception e)
at System.Windows. Forms.ControlNa tiveWindow.OnTh readException(E xception e)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)
at System.Windows. Forms.UnsafeNat iveMethods.Disp atchMessageW(MS G& msg)
at
System.Windows. Forms.Component Manager.System. Windows.Forms.U nsafeNativeMeth o
ds+IMsoComponen tManager.FPushM essageLoop(Int3 2 dwComponentID, Int32 reason,
Int32 pvLoopData)
at System.Windows. Forms.ThreadCon text.RunMessage Loop(Int32 reason,
ApplicationCont ext context)
at System.Windows. Forms.Applicati on.Run(Form mainForm)
at Insight.RepUI.C ore.Launcher.Ma in()
TIA,
Eric Cadwell 1 3361
It sounds like the form is not being disposed or disposed
in a timely enough manner. You may want to try
calling .Dispose on form_unload().
Just a thought. -----Original Message----- We're running Load Runner to test a large 1.0 based
WinForms application.I'm getting the following exception when opening and
closing a form 400 -450 times. The form contains several controls and custom
UserControls. Allthe code is native C#.
I'm not making an explicit call to ToBitmap or DrawIcon
in my code. Cananyone help?
Exception Caught in Main(): at
System.Drawing. Graphics.GetHdc ()at System.Drawing. Icon.Draw(Graph ics graphics, Rectangle
targetRect)at System.Drawing. Graphics.DrawIc on(Icon icon, Rectangle
targetRect)at System.Drawing. Icon.ToBitmap() at System.Windows. Forms.ThreadExc eptionDialog..c tor
(Exception t)at System.Windows. Forms.ThreadExc eptionDialog..c tor
(Exception t)at System.Windows. Forms.ThreadCon text.OnThreadEx ception
(Exception t)at System.Windows. Forms.Control.W ndProcException
(Exception e)at
System.Windows. Forms.ControlNa tiveWindow.OnTh readException
(Exception e)at System.Windows. Forms.NativeWin dow.Callback(In tPtr
hWnd, Int32 msg, IntPtrwparam, IntPtr lparam) at
System.Windows. Forms.UnsafeNat iveMethods.Disp atchMessageW
(MSG& msg)at System.Windows .Forms.Componen tManager.System .Windows.Forms
..UnsafeNativeM ethods+IMsoCompone ntManager.FPush MessageLoop(Int 32
dwComponentID, Int32 reason,Int32 pvLoopData) at System.Windows. Forms.ThreadCon text.RunMessage Loop
(Int32 reason,ApplicationCon text context) at System.Windows. Forms.Applicati on.Run(Form mainForm) at Insight.RepUI.C ore.Launcher.Ma in()
TIA, Eric Cadwell
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Greg |
last post by:
On my report I want to have an opening balance signifying all transactions
up to the month selected
and detailed transactions for the month selected
and then a closing blance.
I'm perpelexed how to do this Anyone knows how the banks do it with
statement formatting?
suggestions, ideas welcome.
|
by: Ron |
last post by:
my application is throwing an exception error when closing
if I run a procedure in the app. I can't even trap the
error with try/catch ex As Exception. Is there a way to
completely shut down the app through code? I am using
End
for now. Is there a way I can suppress this exception
message? The app gets invoked programmatically on a
schedule. So no one would be around to click off the
|
by: Eric Cadwell |
last post by:
We're running Load Runner to test a large 1.0 based WinForms application.
I'm getting the following exception when opening and closing a form 400 -
450 times. The form contains several controls and custom UserControls. All
the code is native C#.
I'm not making an explicit call to ToBitmap or DrawIcon in my code. Can
anyone help?
Exception Caught in Main(): at System.Drawing.Graphics.GetHdc()
|
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= |
last post by:
I am (still) relatively new to Windows applications, most of my experience
has been Web based, and I am confused about what exactly happens when the
Main() method is called and how to manipulate forms opening & closing.
An example of this issue is as follows. I have a logon form open as the
first thing. The main functional form opens when a user has successfully
logged on. From the main form, a user should be able to logout which will...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |