Not sure how it is getting thrown.
I know the code causing it is this
Code:
char* mysocket::Recv() //Recvs a char string.
{
int error;
char *buffer;
buffer = new char[1024];
memset(buffer, 0, strlen(buffer)); //Clear the buffer
//Put the incoming text into our buffer
error = recv(s, buffer, 1023, 0);
if(error < 0 || strlen(buffer) == 0){delete buffer;return NULL;} //recv returns -1 for a fail
else {buffer[error] = '\0';return buffer;}
}
Code:
#0 0x77b60845 ntdll!TpWaitForAlpcCompletion (??:??)
#1 0x00f1fd10 ?? (??:??)
#2 0x77b456a2 ntdll!RtlFillMemoryUlong (??:??)
#3 0x00694808 ?? (??:??)
#4 0x00690000 ?? (??:??)
#5 0x00694808 ?? (??:??)
#6 0x00690000 ?? (??:??)
#7 0x00f1fd30 ?? (??:??)
#8 0x77b22a44 ntdll!RtlpConvertCultureNamesToLCIDs (??:??)
#9 0x00000000 ?? (??:??)
#10 0x00694808 ?? (??:??)
#11 0x00694808 ?? (??:??)
#12 0x77abb8e6 ntdll!RtlDowncaseUnicodeChar (??:??)
#13 0x84070083 ?? (??:??)
#14 0x00000ee4 ?? (??:??)
#15 0x00f1fd78 ?? (??:??)
#16 0x77b6189f ntdll!TpQueryPoolStackInformation (??:??)
#17 0x00690000 ?? (??:??)
#18 0x00694808 ?? (??:??)
#19 0x77abb8e6 ntdll!RtlDowncaseUnicodeChar (??:??)
#20 0x72d4d36d ?? (??:??)
#21 0x00690000 ?? (??:??)
#22 0x00690000 ?? (??:??)
#23 0x00000000 ?? (??:??)
#24 0x00690000 ?? (??:??)
#25 0x00f1fe08 ?? (??:??)
#26 0x00010000 ?? (??:??)
#27 0x00f1fd44 ?? (??:??)
#28 0x00690000 ?? (??:??)
#29 0x00f1fe5c ?? (??:??)
#30 0x77b00ae5 ntdll!AlpcMaxAllowedMessageLength (??:??)
#31 0x058efea5 ?? (??:??)
#32 0x00000001 ?? (??:??)
#33 0x00f1fe6c ?? (??:??)
#34 0x77b1a9af ntdll!AlpcMaxAllowedMessageLength (??:??)
#35 0x00690000 ?? (??:??)
#36 0x50000063 ?? (??:??)
#37 0x00694810 ?? (??:??)
#38 0x72d4d079 ?? (??:??)
#39 0x00000000 ?? (??:??)
#40 0x00690000 ?? (??:??)
#41 0x00694810 ?? (??:??)
#42 0x00000000 ?? (??:??)
#43 0x00000400 ?? (??:??)
#44 0x77abe046 ntdll!LdrWx86FormatVirtualImage (??:??)
#45 0x0000001c ?? (??:??)
#46 0x00690138 ?? (??:??)
#47 0x00000000 ?? (??:??)
#48 0x72d4d3fd ?? (??:??)
#49 0x40000062 ?? (??:??)
#50 0x00000000 ?? (??:??)
#51 0x00690000 ?? (??:??)
#52 0x00000000 ?? (??:??)
#53 0x004ec3d8 ?? (??:??)
#54 0x00000000 ?? (??:??)
#55 0x00000000 ?? (??:??)
#56 0x00810000 ?? (??:??)
#57 0x40000062 ?? (??:??)
#58 0x00f1fd24 ?? (??:??)
#59 0x00000103 ?? (??:??)
#60 0xc000020d ?? (??:??)
#61 0x000000a4 ?? (??:??)
#62 0x00000004 ?? (??:??)
#63 0x77ac622f ntdll!TpCaptureCaller (??:??)
#64 0x77ac6234 ntdll!TpCaptureCaller (??:??)
#65 0x72d4d035 ?? (??:??)
#66 0x000000a4 ?? (??:??)
#67 0xc000020d ?? (??:??)
#68 0x00000103 ?? (??:??)
#69 0x00f1fdf8 ?? (??:??)
#70 0x77aaf8b1 ntdll!RtlUpdateClonedSRWLock (??:??)
#71 0x00f1fe90 ?? (??:??)
#72 0x77b00ae5 ntdll!AlpcMaxAllowedMessageLength (??:??)
#73 0x058ee0cd ?? (??:??)
#74 0xfffffffe ?? (??:??)
#75 0x00000000 ?? (??:??)
#76 0x736167e4 WSHTCPIP!WSHOpenSocket2 (??:??)
#77 0xc000020d ?? (??:??)
#78 0xc000020d ?? (??:??)
#79 0x00f1fea0 ?? (??:??)
#80 0x73617411 WSHTCPIP!WSHOpenSocket2 (??:??)
#81 0x7361461c WSHTCPIP!WSHOpenSocket2 (??:??)
#82 0x6c0ec350 ?? (??:??)
#83 0x00000000 ?? (??:??)
#84 0x01005360 ?? (??:??)
#85 0x00000000 ?? (??:??)
#86 0x00f1fed8 ?? (??:??)
#87 0x00000001 ?? (??:??)
#88 0x00f1fd8c ?? (??:??)
#89 0x00000020 ?? (??:??)
#90 0x00f1fec8 ?? (??:??)
#91 0x77b00ae5 ntdll!AlpcMaxAllowedMessageLength (??:??)
#92 0x058ee665 ?? (??:??)
#93 0xfffffffe ?? (??:??)
#94 0x00f1fe8c ?? (??:??)
#95 0x77ac2bf2 ntdll!RtlEncodePointer (??:??)
#96 0x00694808 ?? (??:??)
#97 0x00694810 ?? (??:??)
#98 0x00694810 ?? (??:??)
#99 0x00000000 ?? (??:??)
#100 0x00000745 ?? (??:??)
#101 0x00694808 ?? (??:??)
#102 0x00f1fed8 ?? (??:??)
#103 0x758798cd msvcrt!free (??:??)
#104 0x00690000 ?? (??:??)
#105 0x00000000 ?? (??:??)
#106 0x00694810 ?? (??:??)
#107 0x6c0010bb ?? (??:??)
#108 0x00000000 ?? (??:??)
#109 0x00000000 ?? (??:??)
#110 0x00000745 ?? (??:??)
#111 0x00000001 ?? (??:??)
#112 0x00f1fef0 ?? (??:??)
#113 0x00f1fefc ?? (??:??)
#114 0x7765305c ntohl (??:??)
#115 0x00f1fea0 ?? (??:??)
#116 0x00f1fee8 ?? (??:??)
#117 0x00f1ff70 ?? (??:??)
#118 0x75898cd5 msvcrt!atan2 (??:??)
#119 0x19767683 ?? (??:??)
#120 0xfffffffe ?? (??:??)
#121 0x00f1fee8 ?? (??:??)
#122 0x00403975 operator delete (??:??)
Code:
Selecting target: default
Compiling: done
Starting debugger: done
Adding source dir: \Desktop\Test Server\
Adding file: \Desktop\Test Server\console.exe
Error: dll starting at 0x77791000 not found.
error
error
error
error
Program received signal (SIGTRAP)
Trace/breakpoint trap
Previous frame inner to this frame (corrupt stack?)
error
Debugger finished with status 0