<div>Hi,</div><div><br></div>I'm upgrading some code using C++ ADK on Windows from 4.8 to 4.9, however I keep getting an error: "%S" invalid database name.  I am using the exact same code in 4.8 and it works great.<div>
<br></div><div> ....</div><div>
<div><span style="white-space:pre-wrap">          </span><span style="white-space:pre-wrap">        </span>m_data->m_vDB = m_data->m_splDB->get_BaseDatabase();</div><div><br></div><div><span style="white-space:pre-wrap">           </span><span style="white-space:pre-wrap">        </span>String dbNameStr = toString( dbName ); //dbName is set above</div>

<div><span style="white-space:pre-wrap">                  </span>I_Location_Ptr dbLocation = new Location( &dbNameStr );</div><div><span style="white-space:pre-wrap">                      </span>m_data->m_vDB->put_Location( dbLocation );<span style="white-space:pre-wrap">        </span></div>

<div><span style="white-space:pre-wrap">                  </span></div><div><span style="white-space:pre-wrap">                 </span>I_Server_Ptr server = CreateServer(m_data->m_dbCon);</div><div><span style="white-space:pre-wrap">                  </span>I_DatabaseInfo_Ptr info = server->get_DatabaseInfo(dbNameStr);</div>

<div><span style="white-space:pre-wrap">                  </span>if( !info )</div><div><span style="white-space:pre-wrap">                      </span>{</div><div><span style="white-space:pre-wrap">                                </span>m_data->m_vDB->put_BigEndian(false);</div>

<div><span style="white-space:pre-wrap">                          </span>m_data->m_vDB->put_Mode(kDsc_Dat_Blb_Ind);</div><div><span style="white-space:pre-wrap">                         </span></div><div><span style="white-space:pre-wrap">                         </span>I_Localizable_Ptr local = QUERY_INTERFACE(m_data->m_vDB, I_Localizable);</div>

<div><span style="white-space:pre-wrap">                          </span>if(local)</div><div><span style="white-space:pre-wrap">                                </span>{</div><div><span style="white-space:pre-wrap">                                        </span>local->put_CollationAttribute(UCOL_STRENGTH,UCOL_SECONDARY);</div>

<div><span style="white-space:pre-wrap">                          </span>}</div><div><span style="white-space:pre-wrap">                                </span></div><div><span style="white-space:pre-wrap">                         </span>try {</div>
<div><span style="white-space:pre-wrap">                                  </span>m_data->m_vDB->Create();</div><div><span style="white-space:pre-wrap">                                   </span>m_data->m_vDB->put_SchemaVersion( ValentinaSchemaVersion );</div>
<div><span style="white-space:pre-wrap">                          </span>}</div><div><span style="white-space:pre-wrap">                                </span>catch (xException& cErr) {</div><div><span style="white-space:pre-wrap">                                   </span>if(cErr.get_ErrorCode()!=fbl::ERR_CONNECTION_DATABASE_ALREADY_EXISTS)</div>

<div><span style="white-space:pre-wrap">                                  </span>{</div><div><span style="white-space:pre-wrap">                                                </span>throw;</div><div><span style="white-space:pre-wrap">                                   </span>}</div>
<div><span style="white-space:pre-wrap">                          </span>}</div><div><span style="white-space:pre-wrap">                        </span>}</div><div>...</div><div><div><span style="white-space:pre-wrap">           </span><span style="white-space:pre-wrap">        </span>if(!m_data->m_vDB->get_IsOpen())</div>

<div><span style="white-space:pre-wrap">          </span><span style="white-space:pre-wrap">        </span>{</div><div><span style="white-space:pre-wrap">                </span><span style="white-space:pre-wrap">        </span><span style="white-space:pre-wrap">        </span>m_data->m_vDB->Open();</div>

<div><span style="white-space:pre-wrap">          </span><span style="white-space:pre-wrap">        </span>}</div></div><div><br></div><div><br></div><div>When the database already exits the info returns correctly, but open never succeeds.  What am I doing wrong?</div>

<div><br></div><div><br></div><div><span style="white-space:pre-wrap">        </span>    </div></div>