Find Jobs
Hire Freelancers

Debugging a C program

$10-30 USD

Ukończony
Opublikowano ponad 7 lat temu

$10-30 USD

Płatne przy odbiorze
I have some simple program written in C (for Linux, xorg desktop). What it does is when it runs, it saves content of root window image (currently active background wallpaper) to a file. This program runs just fine, it is 132 lines of code. I need to include this functionality to my other software, so I copied the functions, include declarations, etc, and it works just fine in my own application. But only if I run it 5 times or 6 times, then it stops working and reports some error (bad Drawable). Once this error happens, it fails to run until I quit the graphical X11 desktop. When I startx again and run my compiled program again, it works just fine about 6x and then there is again the error. I am amateur C programmer so I do not know how to debug the code to find out whats wrong. I need you to debug my conde and attempt to fix my issue, or at least identify root cause for it. Source files attached. Instructions: getbg.c: if I compile and run only this, it works 100 times, no problem launcher.c: if I compile and run this, it works only about 6 times, then error, and getbg.c stops working too, after the error is encountered in launcher.c In order for the launcher to work properly, you will need a config file, which is generated from your desktop applications list. genconf script is attached, run it as this: ./genconf > ./conf
Identyfikator projektu: 12305786

Informację o projekcie

1 oferta
Zdalny projekt
Aktywny 7 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
Przyznano:
Awatar Użytkownika
$25 USD w 1 dzień
0,0 (0 opinii)
0,0
0,0

O kliencie

Flaga CZECH REPUBLIC
Sumperk, Czech Republic
5,0
67
Zweryfikowana metoda płatności
Członek od kwi 5, 2009

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.