TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jackson Brown
NA
10
0
What is the difference between these two lines of code???
Oct 8 2009 8:42 AM
Hello,
I have two lines of code giving me VERY different results and can't figure out why. Behavior is the same on XP & Vista.
Line A: frmACT_Toast.ShowToast("ASDF", "XYZ", null, null);
Line B: frmACT_Toast.ShowToast("ASDF", "XYZ", null, null);
I know they are the same the only difference I can figure out is how they are executed and something that must go with that under the covers.
Background:
A dll is loaded to process incoming data. When data is rx of a certain type it will display a screen toast. Line A the screen toast is called by the dll. Line B the screen toast is called by a test form with a single button I created to try and figure this out. So what is the form and or button click doing differently than the dll call?
I have even identified where in the screen toast they behave differently but no errors are thrown so again I am at a loss.
With line A the screen toast runs this routine(public static GraphicsPath CreateRoundedRectPath(Rectangle rect, int radius) {} Creates a pretty little toast) 1 time only then seems to get hung yielding this result.
The process hangs but the system does not.
However Line B, runs the same method (public static GraphicsPath CreateRoundedRectPath(Rectangle rect, int radius) {}) 10 times as it builds the gradient and yields this result.
Any help as to what I am missing would be greatly appreciated.
Reply
Answers (
2
)
updating sql server database from the user system ?
Winform Combobox Databinding problem. Is this a bug or normal operation?