Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

ClearCase Plug-In

<< < (2/6) > >>

mandrav:

--- Quote ---The procedure entry point _ZN!wxDialog17MSWProcessMessageEPT6tagMSG could not be located in the dynamic link library wxmsw26_gcc_cb.dll.
--- End quote ---

Are you sure you 're linking to the same DLL C::B uses?

killerbot:
Well, I saw that CB is using wx 2.6.1, but when downloading the sources at wxwidgets.org  I could either choose between 2.4.2 and 2.6.2. So I choose the 2.6.2.
This is part of my project file :
         <Environment>
            <Variable name="WX_VER" value="26"/>
            <Variable name="WX_DIR" value="E:\wxWidgets-2.6.2"/>
            <Variable name="WX_CFG" value="NonUnicode"/>
            <Variable name="CB_SDK" value="E:\Program Files\CodeBlocks"/>
         </Environment>

      <Linker>
         <Add library="wxmsw$(WX_VER)"/>
         <Add library="codeblocks"/>
         <Add directory="$(WX_DIR)\lib\gcc_dll\msw"/>
         <Add directory="$(WX_DIR)\lib\gcc_dll$(WX_CFG)"/>
         <Add directory="$(CB_SDK)\sdk\lib"/>
         <Add directory="$(CB_SDK)\devel"/>
         <Add directory="$(CB_SDK)\sdk\tinyxml"/>
         <Add directory="$(CB_SDK)\sdk\wxscintilla\include"/>
      </Linker>


So I guess I link with the dll of CB ? And in my sources of wx (where I builded as instructed in the wiki) I retrieve the header files and that setup.h ???

kind regards,
Lieven

killerbot:
Experiment : I replace in CB directory the wx dll, with the one resulting from my wx 2.6.2 build -> I seem toget a bit further (I can already see my menu entry) but then CB crashes :

-------------------

Error occured on Thursday, October 27, 2005 at 14:22:08.

E:\Program Files\CodeBlocks\codeblocks.exe caused an Access Violation at location 10060e63 in module E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll Reading from location 002dfff8.

Registers:
eax=0023f1e0 ebx=01357ba8 ecx=104cfb9c edx=002e0004 esi=0023f1e0 edi=002d044e
eip=10060e63 esp=0023f150 ebp=0023f168 iopl=0         nv up ei pl zr na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010246

Call stack:
10060E63  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:10060E63  _onexit  d:/src/mingw/build/runtime/../../runtime/dllcrt1.c:183
1012B986  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:1012B986  _onexit  d:/src/mingw/build/runtime/../../runtime/dllcrt1.c:183
1010A7D0  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:1010A7D0  _onexit  d:/src/mingw/build/runtime/../../runtime/dllcrt1.c:183
77D48734  C:\WINDOWS\system32\USER32.dll:77D48734  GetDC
77D48816  C:\WINDOWS\system32\USER32.dll:77D48816  GetDC
77D4B89B  C:\WINDOWS\system32\USER32.dll:77D4B89B  GetParent
77D5F3E3  C:\WINDOWS\system32\USER32.dll:77D5F3E3  SendMessageA
101299ED  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:101299ED  _onexit  d:/src/mingw/build/runtime/../../runtime/dllcrt1.c:183
10193586  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:10193586  _onexit  d:/src/mingw/build/runtime/../../runtime/dllcrt1.c:183
6A7C6676  E:\Program Files\CodeBlocks\share\codeblocks\plugins\todo.dll:6A7C6676  GetSDKVersionMinor
6A7C6942  E:\Program Files\CodeBlocks\share\codeblocks\plugins\todo.dll:6A7C6942  GetSDKVersionMinor
6A7C6F9B  E:\Program Files\CodeBlocks\share\codeblocks\plugins\todo.dll:6A7C6F9B  GetSDKVersionMinor
6A7C4191  E:\Program Files\CodeBlocks\share\codeblocks\plugins\todo.dll:6A7C4191  GetSDKVersionMinor
100A86D8  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:100A86D8  _onexit  d:/src/mingw/build/runtime/../../runtime/dllcrt1.c:183
100A8A9C  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:100A8A9C  _onexit  d:/src/mingw/build/runtime/../../runtime/dllcrt1.c:183
100A9A79  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:100A9A79  _onexit  d:/src/mingw/build/runtime/../../runtime/dllcrt1.c:183
100A9A19  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:100A9A19  _onexit  d:/src/mingw/build/runtime/../../runtime/dllcrt1.c:183
100A9A19  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:100A9A19  _onexit  d:/src/mingw/build/runtime/../../runtime/dllcrt1.c:183
60549C38  E:\Program Files\CodeBlocks\codeblocks.dll:60549C38  _ZN13PluginManager13NotifyPluginsER15CodeBlocksEvent
6055B23F  E:\Program Files\CodeBlocks\codeblocks.dll:6055B23F  _ZN14ProjectManager10SetProjectEP9cbProjectb
6055D66F  E:\Program Files\CodeBlocks\codeblocks.dll:6055D66F  _ZN14ProjectManager11LoadProjectERK8wxString
6057E3B9  E:\Program Files\CodeBlocks\codeblocks.dll:6057E3B9  _ZN15WorkspaceLoader4OpenERK8wxString
604DA46D  E:\Program Files\CodeBlocks\codeblocks.dll:604DA46D  _ZN11cbWorkspace4LoadEv
604DA049  E:\Program Files\CodeBlocks\codeblocks.dll:604DA049  _ZN11cbWorkspaceC1ERK8wxString
6055E5F4  E:\Program Files\CodeBlocks\codeblocks.dll:6055E5F4  _ZN14ProjectManager13LoadWorkspaceERK8wxString
004029EC  E:\Program Files\CodeBlocks\codeblocks.exe:004029EC
0040386D  E:\Program Files\CodeBlocks\codeblocks.exe:0040386D
0044D608  E:\Program Files\CodeBlocks\codeblocks.exe:0044D608
10043179  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:10043179  _onexit  d:/src/mingw/build/runtime/../../runtime/dllcrt1.c:183
100B187C  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:100B187C  _onexit  d:/src/mingw/build/runtime/../../runtime/dllcrt1.c:183
0040148A  E:\Program Files\CodeBlocks\codeblocks.exe:0040148A
00447ADA  E:\Program Files\CodeBlocks\codeblocks.exe:00447ADA
004011E7  E:\Program Files\CodeBlocks\codeblocks.exe:004011E7
00401238  E:\Program Files\CodeBlocks\codeblocks.exe:00401238
7C816D4F  C:\WINDOWS\system32\kernel32.dll:7C816D4F  RegisterWaitForInputIdle


Seems like I am definitely doing something wrong :-( , but what ?

killerbot:
I found the sources for wx 2.6.1, and build them, and accordingly changed my plug-in project.
Also here I get the crash now :

Error occured on Thursday, October 27, 2005 at 15:02:48.

E:\Program Files\CodeBlocks\codeblocks.exe caused an Access Violation at location 1014fa2f in module E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll Reading from location 0000006c.

Registers:
eax=00c18080 ebx=00000008 ecx=1053a548 edx=0023f4c0 esi=01337cb8 edi=0132cd88
eip=1014fa2f esp=0023f3b0 ebp=0023f3d8 iopl=0         nv up ei pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010202

Call stack:
1014FA2F  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:1014FA2F  _ZN9wxMenuBar6AppendEP6wxMenuRK8wxString
014A1AA2  E:\Program Files\CodeBlocks\share\codeblocks\plugins\ClearCase.dll:014A1AA2  GetSDKVersionMinor
00418124  E:\Program Files\CodeBlocks\codeblocks.exe:00418124
0042132B  E:\Program Files\CodeBlocks\codeblocks.exe:0042132B
100A77E8  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:100A77E8  _ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
100A7BAC  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:100A7BAC  _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
100A8B89  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:100A8B89  _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A89C6  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:100A89C6  _ZN12wxEvtHandler20ProcessPendingEventsEv
10001C44  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:10001C44  _ZN12wxAppConsole20ProcessPendingEventsEv
100C8D01  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:100C8D01  _ZN5wxApp5YieldEb
6052F54E  E:\Program Files\CodeBlocks\codeblocks.dll:6052F54E  _ZN14MessageManager9AppendLogEPKcz
60548DD9  E:\Program Files\CodeBlocks\codeblocks.dll:60548DD9  _ZN13PluginManager14LoadAllPluginsEv
0041630F  E:\Program Files\CodeBlocks\codeblocks.exe:0041630F
0041278C  E:\Program Files\CodeBlocks\codeblocks.exe:0041278C
00402832  E:\Program Files\CodeBlocks\codeblocks.exe:00402832
0040386D  E:\Program Files\CodeBlocks\codeblocks.exe:0040386D
0044D608  E:\Program Files\CodeBlocks\codeblocks.exe:0044D608
10043161  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:10043161  _Z14wxUninitializev
100B07BC  E:\Program Files\CodeBlocks\wxmsw26_gcc_cb.dll:100B07BC  _Z7wxEntryP11HINSTANCE__S0_Pci
0040148A  E:\Program Files\CodeBlocks\codeblocks.exe:0040148A
00447ADA  E:\Program Files\CodeBlocks\codeblocks.exe:00447ADA
004011E7  E:\Program Files\CodeBlocks\codeblocks.exe:004011E7
00401238  E:\Program Files\CodeBlocks\codeblocks.exe:00401238
7C816D4F  C:\WINDOWS\system32\kernel32.dll:7C816D4F  RegisterWaitForInputIdle


Any help ?
Lieven

mandrav:
You need the exact same wxWidgets C::B was built with.
If you build C::B yourself that's easy because you 'll be using the same wx.
If not, download the C::B SDK. It contains, among other things, the import library for wxmsw26_gcc_cb.dll (libwxmsw26.a). Link with it and everything will be fine.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version