15,904,416 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 Python 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 henur (Top 2 by date)
henur
3-Jul-11 5:26am
View
Ok :-)
Maybe it's stupid....
I am open for suggestions. Let me describe the needs instead.
I have stopwatches (maybe severals) starting in a application.
As long as the applications runs i have no problem to pause and restart.
However.....when the application closes for the workingday and then starts next time i need to show the stopwatches and restart with saved values(milliseconds or ticks....) but as i understand it, i cant set values to a stopwatch.
So...i thought....save the object-read it back- and restart.
But as i said...i am open for suggestions.
With Kind Regards
Heino
henur
30-Jun-11 8:39am
View
Well...i tried following
Stopwatch stw = (Stopwatch)(reader["sw"]); (I use MySql)
but then i get error: Unable to cast object of type 'System.Byte[]' to type 'System.Diagnostics.Stopwatch'.
So...i dont know how to get further.
Heino