15,888,461 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 Frank Lindecke (Top 6 by date)
Frank Lindecke
26-Jan-16 7:32am
View
Reason for my vote of 1 \n Measuring the wrong thing. IL code is the same, execution is different, but C# code is definitely not the reason.
Frank Lindecke
27-Aug-15 7:39am
View
Have a look at https://msdn.microsoft.com/en-us/library/system.windows.threading.dispatcher(v=vs.110).aspx. Every DispatcherObject (the base class of all WPF controls) provides the Dispatcher property.
Dispatcher class provides method CheckAccess() which can be used for your purpose.
Frank Lindecke
27-Aug-15 4:07am
View
Perhaps https://groups.google.com/forum/#!topic/google-picasa-data-api/tNL4TeNP6fI or http://stackoverflow.com/questions/30469058/google-gdata-client-gdatarequestexception-authentication-suddenly-fails-in-old would help you.
FYI: I have just googled your failure message ;-)
Frank Lindecke
19-Aug-15 2:08am
View
Reason for my vote of 5 \n I do not know the reason why we need an answer to this question, but realization is nice and cool!
Frank Lindecke
4-Aug-15 5:57am
View
Perhaps you can use
https://msdn.microsoft.com/en-us/library/system.windows.forms.keysconverter.aspx
, but you need to handle Shift, Alt etc. by yourself.
When you have converted the KeyCode into a character it is easy to write a class which outputs a word whenever a space is recognized.
Output can be designed by an "public event Action<string> WordFound" which is called whenever condition matched.
Frank Lindecke
3-Aug-15 2:58am
View
Is it able to use a concurrent API?
You have the following steps:
1) Read image data into memory
2) Create an image
3) Create PDF from image
4) Write PDF to disk
Add a queue between each step and connect the steps via the queue.
Each step uses a separate worker taken from in-queue and writing result it to out-queue.
This might improve performance, because conversion from data to image and image to pdf can be made concurrent (if theses steps are the cpu hogs).
Steps 1 and 4 are io intensive, but when reading or writing data cpu is waiting for disk and these small waits can be used by other threads.
NOTE:
1) This might only work if creation of image and creation of pdf API can be used concurrently.
2) Use a cpu profile and check if the assumptions you made are correct (e.g. that conversion of image and conversion of pdf are the cpu hogs)
Show More