Find Jobs
Hire Freelancers

Debugging a C program

$10-30 USD

Завершено
Опублікований over 7 years ago

$10-30 USD

Оплачується при отриманні
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
ID проекту: 12305786

Про проект

1 пропозиця
Дистанційний проект
Активність 7 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
$25 USD за 1 день
0,0 (0 відгуки(-ів))
0,0
0,0

Про клієнта

Прапор CZECH REPUBLIC
Sumperk, Czech Republic
5,0
67
Спосіб оплати верифіковано
На сайті з квіт. 5, 2009

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.