15,911,789 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 Stryder_1 (Top 4 by date)
Stryder_1
2-May-18 12:11pm
View
When you debug, does TempData["username"] contain a value before the RedirectToAction call?
If so, when the Details function is executed, does the TempData["username"] still have a value?
Stryder_1
2-May-18 12:06pm
View
Since you only call this function once in your application, you probably will not be concerned with point #2. If you want to learn more about it though, search for Asynchronous programming.
From what I can tell, you do not really need a new array allocated with each minimum count. Instead, reuse the array you have already created. You would declare your array before the do-while loop. Then instead of instantiating an array with each loop, reset the values in the array to a number you would not receive from the serial port. For example, if you do not expect negative values, you could initialize each array value with -1. This will eliminate the allocation/deallocation processing for each loop iteration.
Stryder_1
10-May-12 10:49am
View
Yes, he doesn't know what he's doing, that's why he's posting here for help ;-)
And again yes, it's a country, but if it's stored in a generic object array, you won't be able to access the Country_Name property unless you explicitly cast it.
Stryder_1
10-May-12 10:30am
View
Was attempting to use the author's own code as much as possible. I think he is attempting to cast the object in the array to a Country, not the name string. I don't know if the countries array is a typed list or just an object array, so I left it.