Search:

Type: Posts; User: BlackRiver1987

Page 1 of 3 1 2 3

Search: Search took 0.04 seconds.

  1. Replies
    14
    Views
    856

    Re: System Re-write

    Of course, if hiding the source code is important then NOT distributing anything is the best way to go.

    Instead of giving them DLLs to use, you just give them API endpoints through which they...
  2. Replies
    14
    Views
    856

    Re: System Re-write

    Well, every DLL can be decompiled. With NuGet packages you just make the distribution a bit easier, IMHO.
  3. Replies
    14
    Views
    856

    Re: System Re-write

    If your system does something and you want other people/systems to get the results of your processing, then exposing an API with endpoints would be the simple solution.
    This way you have a lot of...
  4. Re: Exception Handling in .NET Framework

    Have you tried asking our online AI friend? I copied your question, pushed it a bit and here's the suggestion I got back:



    Imports System.Runtime.CompilerServices

    Public Class YourClass
    ...
  5. Re: Exception Handling in .NET Framework

    Might be helpful:

    https://thorarin.net/blog/post/2013/02/21/Preserving-Stack-Trace

    As a side note: Why is your domain layer concerned with infrastructure stuff? If you are following Clean...
  6. Replies
    6
    Views
    534

    Re: Duplicates In DGV

    Log the response from the DB before you assign it to the DGV.
    Also, how about you show us some code? How do you construct the query? How do you send it to the DB?
  7. Re: Download from a website not completing?

    Here is an example of a console application which downloads a 100MB PDF file and saves it to a location on your PC. It also reports the download progress




    Sub Main(args As String())
    ...
  8. Replies
    15
    Views
    1,389

    VS 2019 Re: Simultaneous downloading

    Make sure you check the response status code before you read the content. This will tell you if your request was ok or not.

    Also, what does did not work mean in this context? Was there an error?...
  9. Replies
    15
    Views
    1,389

    VS 2019 Re: Simultaneous downloading

    In the first example, you are not actually getting the response content. After client.SendAsync(), you need to read the string content of the response. Something like the following might work: var...
  10. Replies
    15
    Views
    1,389

    VS 2019 Re: Simultaneous downloading

    You should look into Task.WhenAll
  11. Replies
    15
    Views
    2,210

    VS 2019 Re: Help writing to multiple text files

    I think you are answering to AI
  12. VS 2022 Re: Trial Version in programming

    Why store these thing in the registry?

    Create a really simple DB that holds the information about your application versions and trial periods. Have a really simple API endpoint exposed that can...
  13. VS 2019 Re: The connection was unexpectedly terminated

    As for the cookies issue, I found the following on StackOverflow, it might help: https://stackoverflow.com/questions/65227400/do-pooled-httpclient-instances-keep-the-cookiecontainer

    Also, in that...
  14. VS 2019 Re: The connection was unexpectedly terminated

    Try it out, see what happens :)
  15. VS 2019 Re: The connection was unexpectedly terminated

    My next suggestion would be to NOT wrap your HttpClient with the using block.
    Also, dont use it like you do there. Use the HttpClientFactory to create a new instance of the client and then make your...
  16. VS 2019 Re: The connection was unexpectedly terminated

    Never use .Result on an async method/function, await it.

    Change the signature of your Button2_Click to be async, remove the .Result from your calls to 2 async functions you have. Await them.
  17. VS 2022 Re: VB.Net Object creation do JSON API submission

    When you do this, you need to make sure your accessorials object actually exists. So before you instantiate codes list, you need to do the same with accessorials object
  18. VS 2022 Re: VB.Net Object creation do JSON API submission

    Your Accessorials is an object that has a list of string called Codes.
    You should be able to do something like:

    Load.accessorials.codes = new List(of String)

    Then you can do...
  19. Re: Pros, Cons and opinions of Background processing.

    You could make your process really async by introducing a message queue, like for example RabbitMq.

    This approach though would work very well if you had microservices arhitecture and eventual...
  20. Re: [RESOLVED] System Null Reference Exception

    I completely agree with your points. I must say though, I also have a work colleague who is 10+ years older than me and has been through much more when it comes to projects. In his role as software...
  21. Re: [RESOLVED] System Null Reference Exception

    Unit tests and TDD have been around for ages. They have thier place. I was also sceptical about their usage, until I started working on a project where we had 4 other devs with various skill levels....
  22. Re: [RESOLVED] System Null Reference Exception

    Regardless, the issue could have been resolved in 10 minutes without going to forums. Not saying it was wrong, just a waste of time.
  23. Re: [RESOLVED] System Null Reference Exception

    Gwboolean, you have to understand that when you are a software developer who gets paid to develop software, then these kind of errors are debugged and fixed within minutes.
    Actually, if you unit...
  24. Re: Requesting Help Debugging a Windows Service

    This is why its good to have unit tests with some mocking.
  25. Re: Execute a For within another For with data from two different String Lists

    Not sure what DB you are using under the hood, but that SQL with JOIN without the ON clause might not return the data you expect.

    Read about JOINs to get a better understanding and make sure all...
  26. VS 2022 Re: [RESOLVED] WebRequest to HTTPClient Odd Issue

    Also, when working with HttpClient, you should look into IHttpClientFactory as the recommended way of dealing with HttpClient.
  27. Re: What could cause a running application to just close down ?

    If you are using Windows, you could check the EventViewer, if you havent done so already.
    It might contain some additional information about the exception.
  28. VS 2022 Re: Bank customer programme (Windows forms .NET)

    Dude, its a school assignment, not a commercial app.
  29. Replies
    20
    Views
    2,246

    Re: Add --SELECT--

    Really, the guy had a simple question and someone comes in and says don't use it. How is that helpful? My reply isn't helpful as well, but dear God some members here like to complicate things.
  30. Re: How to change the existing positive value of a textbox to a negative value on but

    Multiply by -1.
  31. Re: Retrieving property values from JSON web services response

    I searched for "Newtonsoft json parse" and got back many results.

    In your case, MyData1 is a string. MyData is JObject and there you should be able to use MyData("Code").
  32. Re: Retrieving property values from JSON web services response

    That should be JObject.Parse.

    Took me 5 seconds to google it
  33. VS 2019 Re: Advise needed for login/access to app

    If you want to talk about best practices, then IMHO none of those mentioned would really be the best solution.

    Without going too much into any infrastructure or architecture decisions, your best...
  34. VS 2019 Re: Not Hard Coding The Server IP in The Client Program

    Maybe look into Service Discovery?
  35. Re: Looking for database in all the wrong places

    Maybe have a look at this:

    https://stackoverflow.com/questions/1409358/ado-net-datadirectory-where-is-this-documented
  36. Replies
    4
    Views
    2,273

    Re: Using IsNumeric(string)

    Look into Int.TryParse

    https://docs.microsoft.com/en-us/dotnet/api/system.int32.tryparse?view=net-5.0
  37. Replies
    32
    Views
    5,427

    Re: VB app takes long time to load

    Worked fine for me running the EXE from the bin folder
  38. Re: Can I lock a collection in a multi thread application

    Maybe have a look at BlockingCollection class?
  39. Replies
    32
    Views
    5,427

    Re: VB app takes long time to load

    Turn off your anti virus software, if you have any running on your machine
  40. Replies
    18
    Views
    4,316

    Re: Too Many Fields Defined

    Fields or columns. Does not matter. The fact is, you can solve this in 3 ways:

    Make sure your select query only select the columns you need (basically don't do SELECT * ),
    Remove unnecessary...
Results 1 to 40 of 84
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width