15,899,474 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 macika123 (Top 26 by date)
macika123
29-Apr-16 13:48pm
View
Thank you!
macika123
29-Apr-16 13:39pm
View
Thank you for the nice answer! I really like the ServiceState enum. It's interesting that I use enums in different parts of the application, but forgot about, that I can use them here too. It looks cool in your code :) .
You were right, I should have added the original code or at least write an appropriate code snippet. I also modified the original question, which now has the original code, too.
macika123
28-Apr-16 20:21pm
View
Thank you!
I'm quite astonished, that I got three answers ( so far :) ).
To be honest, I've bad memories about doing this, because of one of the projects I worked on (but that's because that project was nightmare anyway ...).
When we got NullReferenceEx, we ended up craving through multiple function calls, because every function returned null, when it has some null variable in them. Again, it was probably the projects fault and in your answer it looks much more cleaner :)
macika123
28-Apr-16 19:54pm
View
As a current-final solution, I replaced the default constructor with a parametrised one - I must set the OtherService object when MyService is created.
Also replaced the auto-property with guarded ones, which throw InvalidOperationException when somebody tries to set them null.
Thanks again for your response :) .
macika123
28-Apr-16 19:22pm
View
Thank you!
I'm quite guilty for overthinking stuff and yet forgetting about smarter solutions. Your solution clarified lots of things and I really appreciate it :) .
macika123
28-Apr-16 18:14pm
View
Thank you! :)
macika123
2-Sep-15 12:52pm
View
Thank you for the response!
I'm a bit confused, because it seems to me, that I'm doing the same thing you suggested regarding the location of the context. I thought, that using statement automatically disposes the object or do I miss something?
I tried to explicitly call Dispose() on context in every loop cycle - and recreating it with disabled lazylodaing, proxygeneration and change autodetection, but I still get large memory consumption.
I'll definitely try the idea of 'lazy-loaded' attachments, but - at least for now - I don't see the difference between generating a ton of Visitor objects with byte array or a many of AttachmentContent objects.
Edit: Some weird behavior, I discovered: If the for cycles over 50 items, then memory consumption stays around 900 MB, even after Button_Click has returned. But when I call the listing function (with a new ZooContext, but it still looks for me, that I'm doing the same in the cycle), the memory consumption drops to normal...
macika123
25-Aug-15 16:50pm
View
Thank you for your response. It's weird, that for you worked reading from MemoryStream, even without explicit definition of CacheOption property.
Meanwhile, I found out that all what I needed was moving 'img.CacheOption = BitmapCacheOption.OnLoad;' line after BeginInit() and the code worked.
For me it seems, that we're doing the same thing, reading from the beginning of some MemoryStream, but somehow it's different. Nevertheless, I have working code :). Also, thank you for your nice article.
I've added my solution to the question, but I also accept yours for reassuring. :)
macika123
27-May-15 18:11pm
View
Did you mark class Data also as DataContract and its members as DataMember like you did with DataService?
macika123
27-May-15 17:09pm
View
Thank you for this detailed solution! I'm always stunned how detailed your solutions are. You're awesome ;).
Well, I also think we can close this discussion. My application is now working with both mouse and touchpad and that's what I wanted :) .
Thanks again.
macika123
27-May-15 2:57am
View
Finally, it's working :D . I'm so happy.
After a bit research it seems, that I'm not alone with this problem. Synaptics' virtual scrolling feature is not working in some applications, but in my case the horizontal scrolling is working in Visual Studio (thanks for the tip to dig deeper in touchpad properties, where I found, that I can actually turn horizontal scrolling on).
When I'm listening for messages sent to my WPF application window using Interop, weirdly I receive WM_MOUSEWHEEL messages, even if I'm using virtual scrolling. However, the MouseWheel event still doesn't fire. Fortunately the HIWORD part of wParam is set correctly (at least for my purposes), so I can step zooming in and out based on sheel spin direction.
Now I'm just wondering, that what's this caused by? Basically, the application gets the message, but somehow it's lost in .NET.
Thanks for help and for reassuring, that my code and the error is somewhere else.
macika123
27-May-15 0:46am
View
Thanks for your reply!
Well, it varies on application. In Start menu, Firefox, Internet Explorer, Spotify works, but in Visual Studio 2013 doesn't. In Github client neither, but interestingly for a moment it scrolled down a bit...
macika123
4-Apr-15 21:40pm
View
Thank you for detailed (and now official) answer!
To be honest this is the first time I heard about term 'degrees of freedom', which makes me feel a bit dumb, but at least I read about it now :) . Thanks again!
macika123
4-Apr-15 19:16pm
View
Basically, this application should serve for traffic simulation purposes (trains, metros, bus lines based on timetables or other vehicles based on recorded GPS routes), where the output is just a video. So I think you persuaded me, that WPF animations should not be used.
I really appreciated your comment ;-). I'm often having hard time making decisions. Thank you very much.
macika123
17-Mar-15 16:24pm
View
You're welcome ;-)!
macika123
13-Mar-15 13:46pm
View
Could you please describe, how the servers are physically connected to the network? It seems to me, that the only solution is using a router between the subnets, that has two IP addresses (one in each subnet).
macika123
9-Mar-15 1:06am
View
Now I think I know everything :) . Thanks for your time to clarify me your application. This was a little out of box for me, that's why I commented. Even I checked the Wikipedia article for pound sterling, whether 1/100 pound coins exist :) .
Thanks again ;).
macika123
9-Mar-15 1:06am
View
Deleted
Now I think I know everything :) . Thanks for your time to clarify me your application. This was a little out of box for me, that's why I commented. Even I checked the Wikipedia article for pound sterling, whether 1/100 pound coins exist :) .
Thanks again ;).
macika123
8-Mar-15 22:37pm
View
I thought about the case, when something costs 12.00 pounds. Then the cashier must type 1200, if I'm correct, and that means two "unnecessary" characters. I think that you can easily forget to type these two additional zeros. If there are plenty items, the cashier might not realise the mistake by looking at the total price.
On the other hand, I see, that if you have price tags mostly ending to .90, than both approaches have the same press count e.g. 1.9 = 2 numbers 1 decimal point vs. 190 = three numbers.
The main reason I asked, that I obviously see cash machines, that have product numbers stored in their memory or simply use barcodes. I can remember the cash machines used at grocery stores, where the cashier typed the price, but to be honest I don't recall which method they used.
It's my bad, that my question was confusing, sometimes I struggle to formulate my questions. Thanks for your reply, you already have the solution and I ask details :) .
Little edit: I presumed, that you have to able type prices like 1.95, but it seems, that you don't. In which case I found it more weird, that you display two numbers after decimal point, but you can't change the least significant one. But I understand that this was the best option for you :) .
macika123
8-Mar-15 19:56pm
View
Hello, I have read your whole question with answers, but I still have one tiny question - I'm just curious no offense intended :) :
Why should the cashier type double zeros for each round price tag? It seems, that cashier might save a little time and it's less probably that they type 0.12 instead of 12.00. Or do they have all price tags ending in .99 :) ?
macika123
25-Feb-15 22:59pm
View
What platform are you working on? WPF, Win32, Windows Phone?
You might check class InkPresenter: https://msdn.microsoft.com/en-us/library/windows/apps/system.windows.controls.inkpresenter%28v=vs.105%29.aspx
or you can play with MouseDown, MouseMove and MouseUp events.
What do you want to achieve? Hand-writing or something like the line tool in drawing applications. Also it would be a better start, if you inserted your source code.
macika123
3-Dec-14 15:42pm
View
Hmm, I don't like the approach, that you read the entire file to memory, but honestly I'm not a C expert :).
What about looping over the input string char by char and dynamically create the list of numbers. In this case, you need the number on first line just to test, whether you have read all the numbers.
Is there any reason you use the built-in function to convert string to char?
macika123
19-Jul-14 18:03pm
View
Hello,
How do you send the stream? I have one PCI voice modem, that is theoretically able to make phone calls, but it has audio input/output jacks on it, so you had to plug a microphone and speakers directly to the modem. I didn't know, that USB modems are also audio output devices, so I'm really curious how you do it.
macika123
28-Sep-12 21:35pm
View
After your comment I revised my solution, and you are right I had to improve ( by changing the queries, maybe I'm addicted to criticising queries :) ).
BTW, I like your method, that you comment why you rated.
macika123
28-Sep-12 16:05pm
View
I think this is the guy who previously wrote, that he have to write some question/answer system. For one question several answers can be.
I can't edit any foreign articles, this is why I wrote a comment. Maybe the guy describe it better.
macika123
27-Sep-12 11:11am
View
That escalated quickly :D. When I came here, there had been no comments, but after submitting mine I saw 4. I simply have to speed up :).
Show More