при 32 битной компиляции все нормально, а если компилирую для 64 битной машины, то прога рушится
Code: Select all
bool soft_itUApp::OnInit()
{
wxConfig* test = new wxConfig(L"blabla", L"AxalayMaxalay");
delete test; //---- the CRASH is here
Code: Select all
bool soft_itUApp::OnInit()
{
wxConfig* test = new wxConfig(L"blabla", L"AxalayMaxalay");
delete test; //---- the CRASH is here
Code: Select all
HKEY_CURRENT_USER\SOFTWARE\Soft-It\Dental-soft by Alex Saprykin\Settings\welcome
Code: Select all
wxString szRezult, szKEY = L"Soft-It/Dental-soft by Alex Saprykin/Settings/welcome";
bool bRezult = wxConfig().Get()->Read(szKEY, &szRezult);
Code: Select all
wxString szRezult, szKEY = L"Settings/welcome";
bool bRezult = GetConfigWelcome()->Read(szKEY, &szRezult);
wxConfig* GetConfigWelcome()
{
if (!configWelcome)
configWelcome = new wxConfig(L"Dental-soft by Alex Saprykin", L"Soft-It");
return configWelcome;
}
Code: Select all
======================32bits RELEASE SHARED LIBs==========================================================================================
../configure --enable-unicode --with-osx_cocoa --with-macosx-version-min=10.12 --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/ CC=clang CXX=clang++ CXXFLAGS="-stdlib=libc++ -std=c++11" OBJCXXFLAGS="-stdlib=libc++ -std=c++11" LDFLAGS=-stdlib=libc++ --disable-mediactrl --enable-macosx_arch=i386
======================64bits RELEASE SHARED LIBs==========================================================================================
../configure --enable-unicode --with-osx_cocoa --with-macosx-version-min=10.12 --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/ CC=clang CXX=clang++ CXXFLAGS="-stdlib=libc++ -std=c++11" OBJCXXFLAGS="-stdlib=libc++ -std=c++11" LDFLAGS=-stdlib=libc++ --disable-mediactrl
Code: Select all
HKEY_CURRENT_USER\SOFTWARE\Soft-It\Dental-soft by Alex Saprykin\Settings
HKEY_CURRENT_USER\SOFTWARE\dental-soft\Конфигуратор\test
Code: Select all
void GetPart0()
{
wxStringTokenizer tokenizer(L"131321", L"c", wxTOKEN_RET_EMPTY_ALL);
}
bool soft_itUApp::OnInit()
{
wxMessageBox("tring to call");
GetPart0();
wxMessageBox("gotcha"); //---never called
Code: Select all
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 soft_it64 0x0000000103f76e7a wxStringTokenizer::~wxStringTokenizer() + 42
1 soft_it64 0x0000000103f72434 GetPart0() + 228
2 soft_it64 0x0000000103f72510 soft_itUApp::OnInit() + 128
3 libwx_osx_cocoau_core-3.1.1.0.0.dylib 0x000000010490ddce wxApp::CallOnInit() + 158
Code: Select all
----------------------------------------------------------------------------------compiler
`wx-config --cxxflags -stdlib=libc++` -fPIC
-std=c++11
-U__STRICT_ANSI__
--------------------------------------------------------------------------------#defines
wxUSE_UNICODE
UNICODE
__WXDLLMAIN__
_CRT_RAND_S
__CODEBLOCKS__
__WXOSX__
__WXMAC__
__WXOSX_COCOA__
__declspec
WXUSINGDLL
NDEBUG
-------------------------------------------------------------------------------linker
`wx-config --version=3.1 --static=no --unicode=yes --libs`
-v
-mmacosx-version-min=10.12
-framework CoreFoundation
------------------------------------------------------------------------------includes for compoler
/Users/admin/Downloads/wx/_64x_release/lib/wx/include/osx_cocoa-unicode-3.1
/Users/admin/Downloads/wx/include
../contrib/databaselayer/include
../contrib/postgre/include
../contrib/postgre
../contrib/xlslib/xlslib/xlslib/src
../contrib/xlslib/xlslib/xlslib/build/CodeBlocks