Click here to Skip to main content
14,301,895 members

C / C++ / MFC

 
GeneralRe: C++ Program to decompress a compressed string Pin
antoniu20018-Aug-19 23:05
memberantoniu20018-Aug-19 23:05 
GeneralRe: C++ Program to decompress a compressed string Pin
Randor 18-Aug-19 23:17
professional Randor 18-Aug-19 23:17 
GeneralRe: C++ Program to decompress a compressed string Pin
antoniu20018-Aug-19 23:27
memberantoniu20018-Aug-19 23:27 
GeneralRe: C++ Program to decompress a compressed string Pin
Randor 18-Aug-19 23:42
professional Randor 18-Aug-19 23:42 
AnswerRe: C++ Program to decompress a compressed string Pin
antoniu20019-Aug-19 0:00
memberantoniu20019-Aug-19 0:00 
GeneralRe: C++ Program to decompress a compressed string Pin
Randor 19-Aug-19 0:20
professional Randor 19-Aug-19 0:20 
GeneralRe: C++ Program to decompress a compressed string Pin
antoniu20021-Aug-19 1:13
memberantoniu20021-Aug-19 1:13 
GeneralRe: C++ Program to decompress a compressed string Pin
Randor 21-Aug-19 7:22
professional Randor 21-Aug-19 7:22 
antoniu200 wrote:
But the code is evaluated on a Linux Ubuntu machine.

Yes, I told you this in my first reply. The 8MB local stack size strongly infers a Linux based operating system.

antoniu200 wrote:
I'm developing on Windows.

Ok, I was asking because you can use setrlimit on Linux to catch when your process exceeds 64MB of memory usage. You can also use it to limit your program to 0.6 seconds.

On Windows you could use SetProcessWorkingSetSizeEx but you would need to do alot more work... such as attaching to a job object with the CreateJobObject function. It's too much work to do this programmatically. You would be better off using perfmon on Windows to detect if your program will exceed 64MB memory usage.

You will probably lose your mind again... but I am fairly certain that your code is failing these Restrictions and clarifications test rules. Poke tongue | ;-P

Best Wishes,
-David Delaune
GeneralRe: C++ Program to decompress a compressed string Pin
antoniu20021-Aug-19 7:31
memberantoniu20021-Aug-19 7:31 
GeneralRe: C++ Program to decompress a compressed string Pin
Randor 21-Aug-19 9:08
professional Randor 21-Aug-19 9:08 
GeneralRe: C++ Program to decompress a compressed string Pin
k505421-Aug-19 12:00
memberk505421-Aug-19 12:00 
AnswerRe: C++ Program to decompress a compressed string Pin
Stefan_Lang20-Aug-19 23:25
memberStefan_Lang20-Aug-19 23:25 
QuestionIs there a conventional name for accessing e.g. memories with fewer address bits than required, using range a selector? Pin
arnold_w12-Aug-19 4:56
memberarnold_w12-Aug-19 4:56 
AnswerRe: Is there a conventional name for accessing e.g. memories with fewer address bits than required, using range a selector? Pin
OriginalGriff12-Aug-19 5:03
protectorOriginalGriff12-Aug-19 5:03 
GeneralRe: Is there a conventional name for accessing e.g. memories with fewer address bits than required, using range a selector? Pin
Stefan_Lang12-Aug-19 22:22
memberStefan_Lang12-Aug-19 22:22 
AnswerRe: Is there a conventional name for accessing e.g. memories with fewer address bits than required, using range a selector? Pin
leon de boer12-Aug-19 15:09
memberleon de boer12-Aug-19 15:09 
AnswerRe: Is there a conventional name for accessing e.g. memories with fewer address bits than required, using range a selector? Pin
arnold_w12-Aug-19 22:43
memberarnold_w12-Aug-19 22:43 
GeneralRe: Is there a conventional name for accessing e.g. memories with fewer address bits than required, using range a selector? Pin
Peter_in_278013-Aug-19 1:44
professionalPeter_in_278013-Aug-19 1:44 
GeneralRe: Is there a conventional name for accessing e.g. memories with fewer address bits than required, using range a selector? Pin
leon de boer13-Aug-19 5:55
memberleon de boer13-Aug-19 5:55 
Questionamibroker afl to dll Pin
kuleen10-Aug-19 20:37
memberkuleen10-Aug-19 20:37 
AnswerRe: amibroker afl to dll Pin
Victor Nijegorodov10-Aug-19 21:30
memberVictor Nijegorodov10-Aug-19 21:30 
AnswerRe: amibroker afl to dll Pin
Richard MacCutchan10-Aug-19 22:37
protectorRichard MacCutchan10-Aug-19 22:37 
QuestionCTreeCtrl get individual item font ? Pin
Maximilien8-Aug-19 4:55
memberMaximilien8-Aug-19 4:55 
AnswerRe: CTreeCtrl get individual item font ? Pin
Victor Nijegorodov8-Aug-19 9:40
memberVictor Nijegorodov8-Aug-19 9:40 
GeneralRe: CTreeCtrl get individual item font ? Pin
Maximilien9-Aug-19 5:07
memberMaximilien9-Aug-19 5:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.