Jump to content

cigi->isInitialized() working fine?


photo

Recommended Posts

Posted

Dear Unigine support,

Just updated a code from 2.10 to 2.11, and one method failed whereas before it was fine. Had to deactivate it.
We do use IG_config.xml de declare / configure CIGIConnector.

	// get CIGI interface
	auto cigi = IG::CIGI::Connector::get();

	// test CIGI connection
	if (!cigi /*|| !cigi->isInitialized()*/) {
		Log::fatal("CIGI could not be initialized.\n");
		return;
	}

 In CIGI demo, activation is done manually, and isInitialized() works fine.

	// get CIGI interface
	auto cigi = IG::CIGI::Connector::get();

	// initialize CIGI connection
	cigi->init(IG::CIGI::CIGI_VERSION_33, host_address_e->getText(), atoi(udp_send_port_e->getText()), atoi(udp_recv_port_e->getText()));

	// test CIGI connection
	if (!cigi->isInitialized()) {
		Log::fatal("CIGI could not be initialized.\n");
		return;
	}

 Maybe it is useless to maintain this check...

Kind regards,
Charles

×
×
  • Create New...