SystemExplorer | Windows System Explorer | Form library
kandi X-RAY | SystemExplorer Summary
kandi X-RAY | SystemExplorer Summary
Windows System Explorer
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SystemExplorer
SystemExplorer Key Features
SystemExplorer Examples and Code Snippets
Community Discussions
Trending Discussions on SystemExplorer
QUESTION
I'm developing a new HMI project using Factory Talk View Studio 7.00.00 (CPR 9 SR 6) and VBA 6.5. Sometimes on client startup VBA crash and the following message appears:
Debug analysisHere below I try to describe as detailed as possible the debug analysis that I've done. If you want you can skip directly to "Final considerations" chapter.
I've opened the Event View on my dev computer and i retrieved the following information about the problem, contained in two different logs:
Log 1 ...ANSWER
Answered 2019-Apr-15 at 10:26After days of struggling, finally, I found the root of the problem! Now I'm going to explain what was causing the problem. If you have a bit of knowledge about FactorkTalk View Studio (FTVs) will be easier, but I will try to be as general as possible during the explanation because I think that this kind of error could occur even on other systems with VBA integrated.
On FTVs you can create an HMI server that contains items called "Displays" that can be shown to users who access the HMI through a Factory Talk View Client (FTVc).
Each display has its own VBA module and when a display is shown the following events, that can be handled on VBA side, will occur with this order:
- Application_DisplayLoad
- Display_Load
- Display_AnimationStart
- Display_Activate
In one of my displays, in its Display_Load event, I was performing some objects initialization and look what Rockwell says about Display_Load event:
Remarks
- When a display is not animating, ActiveX controls will not be activated and interaction with them may be limited.
- When a display is not animating, property writes and method calls to Graphics objects are not allowed and will cause errors to be raised.
Try to guess... In Display_Load I was writing on the property of a Graphics object... So I just moved my code in the event Display_AnimationStart because code that is executed in there is sure to find all graphics objects correctly activated. Look what Rockwell says about Display_AnimationStart event:
Remarks
- This event occurs after all elements in a display are activated. At this point, you can read and write to element properties and call element methods.
Now the crash no longer occurs.
QUESTION
I would like to determine the total amount of disk I/O read data and also write data (in bytes) for a specific process.
Not sure if this can be done through performance counters, because when I run this code example from MSDN I only see these related counter names which does not seem to be able retrieve the information that I need since they are in data/sec which seems to serve for calculating an average value only...
- IO Read Operations/sec
- IO Write Operations/sec
- IO Data Operations/sec
- IO Other Operations/sec
- IO Read Bytes/sec
- IO Write Bytes/sec
- IO Data Bytes/sec
- IO Other Bytes/sec
In case of I'm wrong, then please explain me which of those counters I need to use and how do I need to compare their values (using PerformanceCounter.NextValue() or PerformanceCounter.NextSample() + CounterSample.Calculate()).
I know this information can be retrieved by some task managers such as System Explorer:
I just would like to do the same.
...ANSWER
Answered 2019-Feb-19 at 11:19GetProcessIoCounters()
is an concise alternative to Perf counters/WMI.
QUESTION
I have a View (in MVVM) which have some controls including a treeview. A ViewModel which is the datacontext and a Model, everything is working fine till now. **I have two cases: **
- I want my View to show a ContextMenu against Treeview items.
- The other case, it should not show a ContextMenu against the Treeview items
Is this possible with one View or there should be two different Views for this purpose, for my personal work it would be better if I have one View.
The VM and model are very simple just having the binded properties of the View.
View.xaml
...ANSWER
Answered 2017-Aug-08 at 08:51You could add a property (ShowContextMenu
) to your SystemExplorerViewVM
class that you set to true
/false
depending on whether you want to display the ContextMenu
. You could then use a Style
with a DataTrigger
in your XAML:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SystemExplorer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page