12,890,294 members (45,769 online)
Forgot your password?
Sign in with
Chapters and Sections
Article Help Forum
Submit an article or tip
Post your Blog
Ask a Question
View Unanswered Questions
View All Questions...
All Message Boards...
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Design and Architecture
C / C++ / MFC
ATL / WTL / STL
Objective-C and Swift
Hardware & Devices
Hosting and Servers
Silverlight / WPF
Site Bugs / Suggestions
Spam and Abuse Watch
The Insider Newsletter
The Daily Build Newsletter
Most Valuable Professionals
The Insider News
The Weird & The Wonderful
General Indian Topics
General Chinese Topics
What is 'CodeProject'?
Ask a Question
Bugs and Suggestions
Article Help Forum
Advertise with us
About our Advertising
Comments by Muhammad-Idrees-1 (Top 13 by date)
Did your logic only depends on first and second form (means form number sequence), or do you have some specific requirements with form names/keys? I think it would be more logical if you can define an interface with a Key (int/string etc.) and let each form implement this interface with own unique Key. Then in this condition you can check for that key which you want to close or which you want to keep opened.
Are you sure the following table field contains binary data?
It seems this field has simple string content and you are trying to convert string to byte, causing this error.
Thanks for your suggestion. But the problem with this technique is that it also finds out all the content that is even commented and of no-use. Although that is garbage commented code placed there, but I have to put lots of effort in order to get rid from that commented content. Is there any workaround the exclude the commented material from search.
I can't ask my each user to install sql server to his machine ;)
I need to create dynammic files on the fly, means user can create/delete as manay files as he want, and how big file size totally depends on user, how much data he want to enter in one file. like txt or xml file. user do not have to install anything new on his machine.
I hope you get the point ?
Yes that's the problem I understand from your post. I checked in this perspective and test accordingly. now the form is working fine.
Thanks a lot again for helping me to get out from this fuzzy exception.
Ok, definitely all custom types are composed of primitive types. that's all clear. but I was just looking for more comprehensive sample that could do this trick for my custom structs, I do not want to write code for my each struct individually.
I need a robust and efficient mechanism, it will be used in high frequency.
Assuming about thousands of client applications will communicate with server and each packet is passed through this mechanism - serialized into bytes and then back to custom types(.net struct).
Thanks Mehdi, looking nice. but I am not sure, that JSON will also work with structs. and if it works, do you think that its a better option for convert my custom types to bytes and vice-versa. I mean comparatively with Marshalling in .net.
What will be the difference and what will be the better option :
.Net Marshalling the structs
Json (described in your article)
there is no any sample that converts struct to bytes. and then bytes back to structs.
System.BitConverter will only convert primitive types to bytes, not my custom packet structs.
That's the point I was also thinking that if watchdog application could also crash, then this approach would not be the good one. and also I have to setup both processes when go for deployment.
Second windows service option seems better option, and I think I have to switch for that solution ultimately.
Thanks a lot for your valuable suggestion.
Sorry i forgot to mentioned, I am using C#.net, VisualStudio 2010
Web02 | 2.8.170424.1 | Last Updated 1 Jan 1900
All Rights Reserved.
Terms of Service