Questions tagged as 'singleton'

2
answers

Problem compiling singleton c ++

When trying to compile a singleton I always get the following return message:    g ++ -g -Wall pkg-config --cflags stage -fPIC pkg-config --libs stage -c -Wall Connection.cpp   cc Connection.o -o Connection   /usr/lib/gcc...
asked by 10.09.2017 / 00:48
0
answers

Post Method returns response code 400 on Android with Volley Singleton

I've created two custom classes according to what my teacher instructed to do the request on the server, but I'm getting a 400 return and I can not figure out the reason. Searching, I saw that it may be something related to the header, but I do...
asked by 24.06.2018 / 02:39
0
answers

Singleton pattern on simultaneous connections

I'm developing a project and made a class in the Singleton pattern to connect to the database: <? class Conexao extends PDO { private static $instancia; public function __construct($dsn, $username = "", $passwor...
asked by 15.02.2018 / 02:08
0
answers

Android - Create a Socket in Singleton

Good evening, I am developing an android game in which to play online has to connect to the server. At first I was trying to create sockets in an Activity where the game will occur, but the app was crashing when creating. After some research, I...
asked by 18.11.2016 / 23:29