visual C++ runtime error
Moderator: Moderators
visual C++ runtime error
So i finally made my oDC mod version but, some users get "visual C++ runtime error". Funny thing is that i got WinXP SP2 and no errors... (maybe its because i got lots of other stuff installed... net framework, etc...) Seems like with other ver. winxp SP1 & win2k ppl get this error after working with proggy for ~5 minutes. Help
UPDATE
Found that if i type space and press enter it crashes with that message...
UPDATE
Found that if i type space and press enter it crashes with that message...
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
This could be related to the seemingly continuing line of problems with some chat text in oDC. Try changing main chat from a RichEdit to regular Edit (though the oDC options)... I'd suspect that it doesn't crash on a regular CEdit.
In any case, you should be able to break into the process and figure out what's crashing it (trace the call stacks on each thread)...
In any case, you should be able to break into the process and figure out what's crashing it (trace the call stacks on each thread)...
got a bunch of testers and while refreshing hub scripts we all got runtime error at the same time... that hub window froze but i could type messages in other hubs...GargoyleMT wrote:This could be related to the seemingly continuing line of problems with some chat text in oDC. Try changing main chat from a RichEdit to regular Edit (though the oDC options)... I'd suspect that it doesn't crash on a regular CEdit.
In any case, you should be able to break into the process and figure out what's crashing it (trace the call stacks on each thread)...
weird
so now i'm sure when i or someone types space (chr32) in "chat" window client crashes...
this is what i got by launching debug:
autos:
call stack:
this is what i got by launching debug:
Code: Select all
First-chance exception at 0x77e8877a in DCPlusPlus.exe: Microsoft C++ exception:
_STL::out_of_range @ 0x0262e7d4.
Code: Select all
- __msg 0x00801ecc "basic_string" const char *
98 'b' const char
Code: Select all
kernel32.dll!77e8877a()
kernel32.dll!77e8877a()
msvcr71d.dll!_CxxThrowException(void * pExceptionObject=0x0262e7d4, const _s__ThrowInfo *
pThrowInfo=0x0081dc7c) + 0x39 C++
> DCPlusPlus.exe!_STL::__stl_throw_out_of_range(const char * __msg=0x00801ecc) Line 73
C++
DCPlusPlus.exe!_STL::_String_base<char,_STL::allocator<char> >::_M_throw_out_of_range()
Line 527 + 0xa C++
DCPlusPlus.exe!_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char>
>::substr(unsigned int __pos=6, unsigned int __n=9) Line 1158 C++
DCPlusPlus.exe!oUtil::isBadNmdcMessage(const
_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > & s={...}) Line 153 +
0x15 C++
DCPlusPlus.exe!HubFrame::onAction(ClientListener::Types type=MESSAGE, Client *
__formal=0x01349d30, const _STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char>
> & line={...}) Line 1521 + 0x9 C++
DCPlusPlus.exe!Speaker<ClientListener>::fire<Client
*,_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > >(ClientListener::Types
type=MESSAGE, Client * const & p=0x01349d30, const
_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > & p2={...}) Line 55 +
0x1f C++
DCPlusPlus.exe!Client::onLine(const
_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > & aLine={...}) Line 145
+ 0x42 C++
DCPlusPlus.exe!Client::onAction(BufferedSocketListener::Types type=LINE, const
_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > & aLine={...}) Line 740
+ 0xf C++
DCPlusPlus.exe!Speaker<BufferedSocketListener>::fire<_STL::basic_string<char,_STL::char_traits<ch
ar>,_STL::allocator<char> > >(BufferedSocketListener::Types type=LINE, const
_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > & param={...}) Line 46 +
0x19 C++
DCPlusPlus.exe!BufferedSocket::threadRead() Line 330 + 0x2c C++
DCPlusPlus.exe!BufferedSocket::run() Line 446 + 0xb C++
DCPlusPlus.exe!Thread::starter(void * p=0x0134a16c) Line 126 + 0xd C++
kernel32.dll!77e70dfb()
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
Yes, you basically said you felt didn't have to comply with the GPL.J0ke wrote:Yea and I gave him interesting answer
Anyway, did you run oDC in debug mode under the debugger, and figure out what the bug in the message parsing routine is? As he's on hiatus (perhaps never to return), if you want it fixed, you'll need to fix it yourself.
debug version works fine... only when release is compiled bug appears...GargoyleMT wrote: Anyway, did you run oDC in debug mode under the debugger, and figure out what the bug in the message parsing routine is? As he's on hiatus (perhaps never to return), if you want it fixed, you'll need to fix it yourself.
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us