16,007,779 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Sparkling_ouc (Top 17 by date)
Sparkling_ouc
23-Sep-13 7:54am
View
Today I debug the applicaiton with "WinDbg" and found:
0:011> k
Child-SP RetAddr Call Site
00000000`212f4dd8 00000000`5fa71f89 wpfgfx_v0400!RenderOptions_IsSoftwareRenderingForcedForProcess+0x22730
00000000`212f4de0 00000000`5fa73435 wpfgfx_v0400!RenderOptions_IsSoftwareRenderingForcedForProcess+0x226e9
00000000`212f4e10 00000000`5fa74810 wpfgfx_v0400!RenderOptions_IsSoftwareRenderingForcedForProcess+0x23b95
00000000`212f4e50 00000000`5fa73adc wpfgfx_v0400!RenderOptions_IsSoftwareRenderingForcedForProcess+0x24f70
00000000`212f4ea0 00000000`5fa12c41 wpfgfx_v0400!RenderOptions_IsSoftwareRenderingForcedForProcess+0x2423c
00000000`212f4f40 00000000`5f987169 wpfgfx_v0400!WgxConnection_Create+0x2a39
00000000`212f4f80 00000000`5fa082e6 wpfgfx_v0400!MilUtility_PathGeometryBounds+0x2219
00000000`212f4fb0 00000000`5fa07fbf wpfgfx_v0400!MilUtility_PolygonBounds+0xbde
00000000`212f5010 00000000`5fa07d18 wpfgfx_v0400!MilUtility_PolygonBounds+0x8b7
00000000`212f5090 00000000`5fa06f9d wpfgfx_v0400!MilUtility_PolygonBounds+0x610
I found the first method of "MilUtility_PolygonBounds" did not run any more, but the third will run every time when I debug the application.
It seems it is a bug of .NET?
Sparkling_ouc
15-Sep-13 22:52pm
View
There are so many code and I don't know which to post. It seems the application always made "HitTest" on some controls and I cannot get any valid call stack to identify which control.
Sparkling_ouc
14-Sep-13 23:57pm
View
The code is so much i cannot figure out where i should comment out, and this bug is very sporadic, I almost took three days to reproduce it.
Sparkling_ouc
29-Apr-11 5:58am
View
ok, I will test it .
Thank you very much. Good Day!
Sparkling_ouc
29-Apr-11 5:58am
View
Thanks a lot , what you said made me clearer about it.
Sparkling_ouc
29-Apr-11 5:24am
View
Thanks for your suggestion. I did set up a small test project ,but i don't know how to measure the cost, any ideas?
Sparkling_ouc
27-Apr-11 21:25pm
View
I'm sure it's a problem about WPF's Rendering System, I posted it on MSDN ,wait them to explain this.
Thank you very much.
Sparkling_ouc
27-Apr-11 2:40am
View
I made a little changed in my project . I put a media into the 0-index tabcontrol's content, after awaken from sleep the tabcontrol's selectedindex is still 0 as said above, but the playing media stopped.
this may certificated that WPF have problems in solving the suspend and resume of computer.
Sparkling_ouc
27-Apr-11 1:42am
View
yeah,the code i listed first is from a very simple project.
and what I want now is to find a way to let the WPF Application's UI refreshed if exists. Such as you mentioned the "Window's UpdateLayOut" method(Although it have not solve this problem, perhaps some other methods could),thanks a lot a lot for your help.
Sparkling_ouc
27-Apr-11 0:26am
View
It may not be a bug of tabcontrol ,
It is possibly a bug of WPF's rendering system as i guess,because when i used combobox it yielded the same result.
As I said,All works well on Winform Applications with exactly same code but not on WPF Applications.
If you could create a test project , I think the result will be same as I descriped.
Sparkling_ouc
26-Apr-11 23:11pm
View
when Waking up , i typed my password and hit Enter , no more keys hit
Sparkling_ouc
26-Apr-11 23:03pm
View
Events happened, but the UI was not refreshed as expected.
All works well on Winform Applications with exactly same code but not on WPF Applications.
Sparkling_ouc
26-Apr-11 23:00pm
View
what i want:
once the computer runs into Suspend(such as sleep) ,the tabcontrol changes its selectedindex (such as 1 ,the original one is 0).
After awaken I wanna see that the tabcontrol's selectdindex is 1(in Winfrom applicatin it is).
But the fact is that:
After awaken the selected index is still 0, when i minimize the application and resotre it with taskbar (or directly maximize the application),the selected index is 1.
Sparkling_ouc
26-Apr-11 22:46pm
View
I tested just now with EventLog class .PowerModeChanged event really worked.
Sparkling_ouc
26-Apr-11 22:18pm
View
I changed the selected index is want to test whether the wpf application's UI would refresh after awaken or not.
yes ,PowerModeChanged it really worked, what doesn't work is the Window's UpdateLayout or maybe it works and not as expected.
Eealier I use Win32's API to get the Window's Sleep Message, PowerModeChanged worked same .
I will try to test as you advised.
Sparkling_ouc
26-Apr-11 21:29pm
View
I tried it in the Winform Application ,it works well.
Sparkling_ouc
26-Apr-11 21:27pm
View
As you said , i tried a simple project just now:
///
/// Interaction logic for Window1.xaml
///
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
this.Loaded += (o, e) => { this.TabControlMain.SelectedIndex = 0; };
SystemEvents.PowerModeChanged+=new PowerModeChangedEventHandler(SystemEvents_PowerModeChanged);
}
private void SystemEvents_PowerModeChanged(object sender, PowerModeChangedEventArgs e)
{
if (e.Mode == PowerModes.Suspend)
{
PrepareToSleep();
}
else
{
this.UpdateLayout();
}
}
private void PrepareToSleep()
{
this.TabControlMain.SelectedIndex = 1;
}
}
TabControlMain is a tabcontrol ,since the window loaded ,the selectedindex is 0,
when the computer went to sleep ,its selectedindex turned to 1,but after awaken, the UI didn't update ——after i minimized it and clicked it in the taskbar, then it appeared with selecting the tabcontrol's 1 index.
in other words, it seems that UpdateLayout doesn't work as I expected.
Thanks for your help.
Show More