Click here to Skip to main content
16,000,891 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Trying to Create Custom Spell Checking Feature but keep running into roadblocks. Argument 1: cannot convert from 'System.IO.MemoryStream' to 'string' Argument 2: cannot convert from 'System.Drawing.Imaging.ImageFormat' to 'Tesseract.ImageForma Pin
OriginalGriff25-Jul-24 2:39
mveOriginalGriff25-Jul-24 2:39 
GeneralRe: C# Trying to Create Custom Spell Checking Feature but keep running into roadblocks. Argument 1: cannot convert from 'System.IO.MemoryStream' to 'string' Argument 2: cannot convert from 'System.Drawing.Imaging.ImageFormat' to 'Tesseract.ImageForma Pin
Texas-Tundra25-Jul-24 2:45
Texas-Tundra25-Jul-24 2:45 
GeneralRe: C# Trying to Create Custom Spell Checking Feature but keep ... Pin
OriginalGriff25-Jul-24 2:50
mveOriginalGriff25-Jul-24 2:50 
QuestionDPI issue when calling C# from C++ Pin
JudyL_MD23-Jul-24 11:05
JudyL_MD23-Jul-24 11:05 
AnswerRe: DPI issue when calling C# from C++ Pin
Richard Andrew x6423-Jul-24 12:08
professionalRichard Andrew x6423-Jul-24 12:08 
GeneralRe: DPI issue when calling C# from C++ Pin
JudyL_MD23-Jul-24 17:26
JudyL_MD23-Jul-24 17:26 
QuestionLog file advice? Pin
geomeo12318-Jul-24 15:12
geomeo12318-Jul-24 15:12 
AnswerRe: Log file advice? Pin
jschell19-Jul-24 13:24
jschell19-Jul-24 13:24 
First of course be aware of your user base. You are collecting information about them by doing that and there might be customer relation problems with that. And legal ones as well.

Other than that all your are doing is collecting data remotely from an application. There are many ways to do that.


geomeo123 wrote:
if there's a way to do that possibly on Github


As in that there is a library for that? Or that you want the data stored on Github? For the first I am certain there is. As for the second that wouldn't be my choice.


geomeo123 wrote:
thinking about logging some try/catch handler errors


You should create a code API that logs the following
- location. File/method.
- Text that describes what it is
- Additional information. This would be where you put exceptions, including stack traces.

Then you call that where ever you want.

There are specific libraries that provide 'logging'. In C# I have used log4net and Nlog.

That provides the API that I mentioned ready to go. It does not however provide the 'destination'. I know you can find addins to log to databases. I suspect others.

Another problem you will have is that since your application is remoting pushing data then someone might do something malicious to abuse your system. Basically you need to figure they will attempt this. So at a minimum you need to provide credentials. Although that probably is not enough. You might want to throttle as well so if they hack your app they can't just start blasting away.

There are services that provide APIs that collect data also.
GeneralRe: Log file advice? Pin
Richard Andrew x6420-Jul-24 14:37
professionalRichard Andrew x6420-Jul-24 14:37 
GeneralRe: Log file advice? Pin
geomeo12324-Jul-24 3:38
geomeo12324-Jul-24 3:38 
GeneralRe: Log file advice? Pin
jschell24-Jul-24 14:48
jschell24-Jul-24 14:48 
AnswerRe: Log file advice? Pin
Richard MacCutchan24-Jul-24 5:13
mveRichard MacCutchan24-Jul-24 5:13 
GeneralRe: Log file advice? Pin
Rob Philpott24-Jul-24 22:44
Rob Philpott24-Jul-24 22:44 
GeneralRe: Log file advice? Pin
jschell31-Jul-24 14:02
jschell31-Jul-24 14:02 
QuestionTables not appearing as classes Pin
Hesam emami9-Jul-24 23:17
Hesam emami9-Jul-24 23:17 
AnswerRe: Tables not appearing as classes Pin
Dave Kreskowiak10-Jul-24 2:56
mveDave Kreskowiak10-Jul-24 2:56 
GeneralRe: Tables not appearing as classes Pin
Hesam emami10-Jul-24 11:37
Hesam emami10-Jul-24 11:37 
GeneralRe: Tables not appearing as classes Pin
Dave Kreskowiak10-Jul-24 11:44
mveDave Kreskowiak10-Jul-24 11:44 
AnswerRe: Tables not appearing as classes Pin
RedDk10-Jul-24 14:15
RedDk10-Jul-24 14:15 
QuestionPrint and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
Fokwa Divine3-Jul-24 3:54
Fokwa Divine3-Jul-24 3:54 
AnswerRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
jschell3-Jul-24 6:00
jschell3-Jul-24 6:00 
GeneralRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
Fokwa Divine3-Jul-24 6:05
Fokwa Divine3-Jul-24 6:05 
AnswerRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
RedDk3-Jul-24 6:54
RedDk3-Jul-24 6:54 
GeneralRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
Fokwa Divine3-Jul-24 7:20
Fokwa Divine3-Jul-24 7:20 
GeneralRe: Print and Print Preview of Web Page not Working Properly in Microsoft Edge Browser Pin
RedDk3-Jul-24 7:54
RedDk3-Jul-24 7:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.