Skip to content

Commit

Permalink
Comment out unnecessary output commands which were previously added f…
Browse files Browse the repository at this point in the history
…or debugging purposes.
  • Loading branch information
anaspk committed Jan 1, 2013
1 parent 571d79c commit e2b4f4f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CompressionManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ CompressionManager::CompressionManager(string ifile, string ofile) {
readAndCountCharacters();
enqueueCharacters();
huffmanTree.becomeHuffmanTree();
huffmanTree.outputCodes();
// huffmanTree.outputCodes();
huffmanTree.createLookupTable();
huffmanTree.doCompressedOutput(ifile, ofile);
}
Expand Down
2 changes: 1 addition & 1 deletion HuffmanTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void HuffmanTree::becomeHuffmanTree() {

void HuffmanTree::createLookupTable() {
createLookupTable(root, 0, 0);
lookupTable.print();
//lookupTable.print();
}

void HuffmanTree::createLookupTable(PQueueNode<HuffmanTreeNode> * p, int code, int usedBits) {
Expand Down
Binary file modified dist/Debug/Cygwin-Windows/huffman-encoding-cpp.exe
Binary file not shown.
14 changes: 7 additions & 7 deletions huffman-encoding-cpp.exe.stackdump
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Exception: STATUS_ACCESS_VIOLATION at eip=00401E9A
eax=00000000 ebx=00000000 ecx=00000000 edx=0022A98C esi=61275B58 edi=611A1EDF
ebp=0022A9E8 esp=0022A970 program=F:\Assignments\Analysis of Algorithms\huffman-encoding-cpp\dist\Debug\Cygwin-Windows\huffman-encoding-cpp.exe, pid 4700, thread main
Exception: STATUS_ACCESS_VIOLATION at eip=00401F0E
eax=00000000 ebx=00000000 ecx=00000000 edx=0022A97C esi=61275B58 edi=611A1EDF
ebp=0022A9D8 esp=0022A960 program=F:\Assignments\Analysis of Algorithms\huffman-encoding-cpp\dist\Debug\Cygwin-Windows\huffman-encoding-cpp.exe, pid 3196, thread main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame Function Args
0022A9E8 00401E9A (200587A8, 00000000, 0022AA50, 0022AA60)
0022AA78 00401DD4 (200587A8, 0022ABF0, 0022AB18, 00000001)
0022AB38 00402585 (200583A8, 0022AC00, 0022ABF0, 00402933)
0022AC68 00402B6B (00000001, 0022AC90, 20010100, 61275C8E)
0022A9D8 00401F0E (200587A8, 00000000, 0022AA40, 0022AA50)
0022AA68 00401E48 (200587A8, 0022ABF0, 0022AB08, 00000001)
0022AB28 004025F9 (200583A8, 0022AC00, 0022ABF0, 00402FEF)
0022AC68 00403281 (00000001, 0022AC90, 20010100, 61275C8E)
0022ACF8 61007535 (00000000, 0022CD78, 61006B20, 00000000)
End of stack trace

0 comments on commit e2b4f4f

Please sign in to comment.