1,545 questions
1
vote
1
answer
73
views
Memory leak in Poco::Net::POP3ClientSession when server is unreachable
I’ve written a class designed to poll an email server. Everything works fine when the server is reachable. However, the problem arises when the server is unreachable. In that case, Valgrind reports ...
0
votes
1
answer
105
views
Linker error using MSbuild, vcpkg and Poco libraries
I have been trying to get vcpkg configured to provide my POCO libraries for a few days now and am about at the end of myself.
The project builds fine, but fails on the linking. Here is the error:
...
0
votes
1
answer
77
views
Is POCO++ capable of port sharing?
The main goal is to introduce a REST API to an existing service written in C++ and POCO seems to be the best match for that.There are other services that need to run on the same machine.
I already ...
0
votes
0
answers
41
views
Logstash/ Poco::Logger - JSON parse error
I am trying to debug this issue showing up related to Json Parsing. My application is using POCO::Logger for logging which is rotating the log files hourly basis. During the rotation, the Logstash is ...
0
votes
0
answers
49
views
how to send data to the server every n seconds and if they were not delivered then save every m seconds?
I have a Manager class that starts one of several tasks (Poco::Util::TimerTask) that are executed periodically in a separate thread using Poco::Util::Timer. When a certain condition is met, this task ...
2
votes
0
answers
68
views
How to get Poco using cmake and conan2
I'm newby in using cmake and conan2, so I need help with Poco library. I've installed conan2, wrote a simple conanfile.txt and installed all the libs I need. But now one of them (ncurses) works just ...
1
vote
1
answer
61
views
Elegantly call leaf's static constructor from base abstract class in C#
I'm writing a POCO generator library using EF Core 3 for .NET Standard 2.0. This library will be used to generate the .cs files via T4 templates in .NET Framework and .NET Core projects.
I've created ...
1
vote
0
answers
60
views
Poco::Data::Session how create file database?
I use the POCO library and I need to create a database SQLite at the beginning of my program so that I can then write and read data into it. How can I do it?
I wrote the following code:
std::...
0
votes
1
answer
85
views
Error Compile poco-lib 1.12.5 with make and arm cross-compiler arm-linux-g++
I cant compile poco-lib for my embedded device with arm-linux-g++ compiler.
i assume that the cross compiler only supports cxx11, but poco has to be compiled with cxx17 ?
i tryed with a older version. ...
1
vote
1
answer
53
views
Swipe screen Xiaomi Poco 5X remotely
Setup:
Xiaomi Poco 5X dev phone with remote access adb to it.
Vyzor installed however can only view screen because Xiaomi requires additional debugging flags be enabled
Problem:
The phone only ...
0
votes
1
answer
1k
views
Parsing Fhir json response into a simple object
Hi I've been trying to fathom this all day and frankly it's beyond me.
So I've got some json response from a firely c# call and I want to get certain elements into a nice list of objects that are ...
0
votes
0
answers
848
views
Entity framework The 'Week' property could not be mapped to the database type 'JSONB' because database provider doesn't support mapping to 'JSONB'
I am trying to use JsonB column using a POCO class in .NET core application using entity framework core 6.
I tried to create a database migration (add-migration "AddWeek") It gave me below ...
3
votes
1
answer
3k
views
Crypto Exception: Failed to load OpenSSL legacy provider when initializing SSL
I am stucked with the following issue, when I try to initialize the SSL functionality using Poco's Crypto Poco::Crypto::initializeCrypto();.
The issue is that in the machine where I perform the build, ...
0
votes
1
answer
521
views
Poco::JSON::Parser throws Poco::JSON::JSONEception error
I am trying to parse a JSON object with poco parser. I am running into a Poco::JSON::JSONException at xxx memory location. I don't understand, what am I supposed to do to get past this?
Here is the ...
2
votes
1
answer
243
views
Does Poco::Data::Session get returned to Poco::Data::SessionPool automatically when session's object gets destroyed?
I'm using Poco::Data::SessionPool class to manage database connections. I need to take a session object from the pool to perform a query. The question is, does this session get back to pool ...
0
votes
0
answers
64
views
SQL Server connection to Visual Studio
I'm trying to use POCO to connect to my database.
Whenever I try to connect, I get this error:
Failed to load provider "System.Data.SqlClient".
A network-related or instance-specific error ...
3
votes
0
answers
303
views
Fail to send smtp mail poco c++
I am new to c++ and tring to send a mail using gmail smtp. I have done this in python but I am unable to do it in c++. I think I need to add startTLS() but it seems to be not defined. Please help me, ...
0
votes
1
answer
67
views
Poco Net : How to register clients?
Help me please with a few questions about Poco:
Can't understand how can I organize new connections in a std::map for example?
Is there keep_alive functionality for TCP?
May be You know some complex ...
0
votes
0
answers
33
views
C# How return a default value when referencing a user defined class? [duplicate]
I have a C# class that I'd like to reference and return the value of a specific property, fieldValue. I currently do it by using "ToString()" but I'd like to be able to just reference the ...
0
votes
1
answer
156
views
Poco::DirectoryWatcher no notification for DW_ITEM_MODIFIED
Try to figure out how to use Poco::DirectoryWatcher.
Unfortunately, it is not working like expected.
When I add a file to the watch folder, delegate onFileAdded is called then delegate onFileChanged.
...
1
vote
0
answers
275
views
format specifier of percent sign with Poco Formatter
while using Poco::format
I am trying to print the following line:
"3% and 5%"
int var1 = 3
int var2 = 5
std::string s;
s = format("%?d%% and %?d%%",var1,var2);
instead of getting &...
1
vote
1
answer
773
views
Undefined reference to `wWinMain' when linking Poco::NetSSL
I am linking a Poco::NetSSL component library from msys2 MinGW-w64.
There's no code actually:
CMakeLists.txt
cmake_minimum_required(VERSION 3.14.2 FATAL_ERROR)
project(smtp LANGUAGES CXX C)
set(...
0
votes
1
answer
659
views
Poco Library, send get request without body
I'm learning c++ and I want to create an http request to get just the server time without authentication, nothing more. The problem is I can't get to receive a succesfull response and also I don't ...
0
votes
0
answers
147
views
CMakeFiles Not included for Poco Net
cmake_minimum_required(VERSION 3.23.1)
project(Poco_client VERSION 0.1.0)
file(GLOB all_SRCS
"${PROJECT_SOURCE_DIR}/src/main.cpp"
)
add_executable(${PROJECT_NAME} ${all_SRCS})
set( ...
1
vote
0
answers
194
views
How solve c++ POCO lib linking error on ARM Linux
I try to link the Poco C++ library with my project on ARM Linux, but I get the linking error.
Link error message:
foo.so: undefined reference to `Poco::JSON::Object::Object(int)'
foo.so: undefined ...