Nim version 2.0.8 released

2024-07-26 Thread MauroG
Thanks for new version. I have a question: Using choosenim (versione .0.8.4) with: choosenim 2.0.8 it has downloaded nim-2.0.8_x32.zip I am on Windows 11 (x64). Wasn't the file supposed to be nim-2.0.8_x64.zip?

A custom '=destroy' hook which takes a 'var T' parameter is deprecated

2024-05-27 Thread MauroG
@ggibson sorry if I mention you again but I don't understand how I should replace this code: proc freeConnection*(con: ODBCConnection) = con.disconnect if con.envHandle != nil: freeEnvHandle(con.envHandle, con.reporting) Run to have destroy ho

A custom '=destroy' hook which takes a 'var T' parameter is deprecated

2024-05-21 Thread MauroG
Hi, I'm updating a package that has new(result, freeConnection) Run and the same warning How should I replace the line to no longer have the warning? Thanks

yahttp - simple HTTP client

2024-05-16 Thread MauroG
Hi, I'm developing a module which is an interface for an API. This API is running on an old virtual server Windows 2008. Calling api with http protocol is all ok. With the default setting of openssl in Nim, when I use https, there is a problem in handshaking phase. Using httpclient the soluti

Using threads with gui Nigui

2024-05-10 Thread MauroG
Thanks for your precise explanation. Now I have to understand how to adapt example 15 to what I have to do.

Using threads with gui Nigui

2024-05-10 Thread MauroG
Thanks for your reply and your suggestion. I modified my code and so it works perfectly

Using threads with gui Nigui

2024-05-09 Thread MauroG
I'm trying to use threads because I want to write messages in textArea and these messages are generated by a proc called by click a button: import nigui import std/strformat import os var ch: Channel[string] proc messaggiInTextArea(primoMsg: string) {.thread

SIGSEGV: Illegal storage access on server windows 2008 and windows 2019

2024-04-08 Thread MauroG
My debugging attempt continues: I add **segfaults module** and now I have this message in console: Traceback (most recent call last) C:\Users\mauro_s1nn2ps\.choosenim\toolchains\nim-2.0.2\lib\pure\net.nim(732) firstRunDigitalisoNim C:\Users\mauro_s1nn2ps\.choosenim\toolcha

SIGSEGV: Illegal storage access on server windows 2008 and windows 2019

2024-04-07 Thread MauroG
I think that the problem is on this line: let jsonNode: JsonNode = parseJson(readFile("dns_qsanet.json")) Run It is the first line below imports.

SIGSEGV: Illegal storage access on server windows 2008 and windows 2019

2024-04-07 Thread MauroG
I have developed a simple CLI program that, given a URL as an argument, returns the response time to me. Since I have to call up sites that are on old servers (windows server 2008 r2), I had to use an sslContext with CipherSuitesOld. I compiled it with the -d:ssl -d:openssl10 and -d:release par

Problem to understand an exception

2024-04-04 Thread MauroG
Thanks janAkali. It seemed so strange to me that it didn't work with **CiphersIntermediate** that it didn't occur to me to try **CiphersOld**. With `CiphersOld`, it works perfectly

Problem to understand an exception

2024-04-03 Thread MauroG
Sorry to bother you, but not finding a solution, I try to ask: it is correct that if I write: let client = newHttpClient(sslContext = newContext(protVersion = protSSLv23, cipherList=CiphersIntermediate, ciphersuites=CiphersIntermediate)) Run I am setting to use the in

Problem to understand an exception

2024-04-01 Thread MauroG
Hi to all. I add new tests done and now the problem is clearer but I still don't have a solution: In my code, as suggested by @janAkali let client = newHttpClient(sslContext = newContext(protVersion = protSSLv23)) Run and compiled with this command: nim c -d:ssl -d

Problem to understand an exception

2024-04-01 Thread MauroG
Yes Mabon, I already compile with -d:ssl

Problem to understand an exception

2024-03-31 Thread MauroG
Thanks to reply I tried protTLSv1 and flag -d:openssl10 I have a curious exception: **No error reported.** I also tried other combinations between protVersion and flag but in the tested cases I always got the initial exception. I definitely need to understand the openssl flag better

Problem to understand an exception

2024-03-31 Thread MauroG
Hi to all, I have this simple code import std/httpclient, strformat, times import std/cmdline let client = newHttpClient() proc startDigitaliso(url: string) = let time_start = epochTime() let msgNonRisponde = "non risponde" try: va

yahttp - simple HTTP client

2024-03-07 Thread MauroG
Thanks to reply. Now I try to convert from version httpCliet to yahttp.

yahttp - simple HTTP client

2024-03-05 Thread MauroG
Hello. If I use yahttp in a project, then should I compile it with -d:ssl? And it needs to be distributed with library libssl and cacert.pem? I think so, but I would like to confirm. Thanks for the great work

Using NiGUI, open a second window from main window

2024-02-29 Thread MauroG
Thanks to all. I tried using 2 files (one per window) but to no avail. The problem is given to me by app.init() which there must only be one and in any case it must be present when the window is created. Thanks again for the examples.

Using NiGUI, open a second window from main window

2024-02-28 Thread MauroG
Hello, I'm using the NiGUI library. Does anyone know if there is a way to show a second window by clicking on a button in the main window? Do you have any examples to show me to perform this operation? In the examples present in the project on Github I don't think there is any of this.