Programming :: C Graphics Window Comes And Suddenly Disposes When Try To Execute Progrm
Aug 1, 2011
#include<stdio.h>
#include<graphics.h>
void boundfil(int x, int y, int fill, int old)
{
if(getpixel(x,y)!=old && getpixel(x,y)!=fill)
{
[Code]...
When I am trying to execute this progrm in Ubuntu the graphics window comes and suddenly disposes when am trying to input the values.. and the error is.."a.out: ../../src/xcb_io.c:249: process_responses: Assertion `(((long) (dpy->last_request_read) - (long) (dpy->request)) <= 0)' failed. Aborted"
View 12 Replies
ADVERTISEMENT
Apr 8, 2010
i booted up 8.04 and the display is huge. i tried ctrl alt backspace hoping it would come back normal, but after three times i gave up on that. i can't find anything in System to fix this. i can barely use it this way.
View 2 Replies
View Related
May 30, 2010
The last few days I have had to reboot my Ubuntu-workstation when the screen suddenly goes black. After some seconds I get a pop-up with the message:
Ubuntu is running in low-graphics mode
There is some buttons that tells me I can do different things (like reconfiguration ) but whatever I do I end up loosing all windows I worked in earlier. And having to reboot to get back full resolution. I have not found any way to reproduce this behavior. It has happened after being logged in for several days and sometimes just after boot and login when I'm starting an xterm and in all time intervals in between the output of:
sudo lshw -C display
PCI (sysfs)
*-display
description: VGA compatible controller
product: 82G33/G31 Express Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 10
width: 32 bits
clock: 33MHz
capabilities: msi pm bus_master cap_list rom
configuration: driver=i915 latency=0 .....
View 6 Replies
View Related
Jun 3, 2010
Recently upgraded to 10.04 after countless problems w/ Karmic & already problems with Lucid! The screen sometimes suddenly goes black, then goes into low graphics mode, if I let it, thereby changing screen rez & unless I reboot, I am stuck in this mode. If I don't choose temporary low graphics mode, I must reboot. Many others seem to be experiencing the same problem yet have been offered no solution by the developers. So.
View 9 Replies
View Related
Jun 4, 2010
If I let my computer sit for about 10 minutes, I lose all the windows I had open (gnome) and i get a message saying I'm running in low graphics mode. I have to restart X in low graphics mode to get it to work. i can't tell the difference, but as an avid writer, I often feel the need to get up and think about whatever I have open in oowriter.
View 3 Replies
View Related
Mar 26, 2011
I got a souce code in linux system. That's why my executeable file can be execute in linux.
Since that I can makefile in linux. But I'd like to make an executeable file in Window system the same.
But I didn't got any source code in Window system. Can I use any software to transfer my
execute file like "aaa" to "aaa.exe" in Window system and can be executed.
View 5 Replies
View Related
Aug 13, 2010
I have been pulling my hair out trying to find out why the Wine System Tray suddenly started appearing in its own little window when running Netmeter, cluttering up the desktop. I searched the web in vain, back many tears, most people saying they couldn't understand it when it happened to them.
Then I realized that the last thing I did was to stop Cairo Dock (the novelty had worn off!) and to move the Gnome Panel to the BOTTOM of the screen in place of Cairo. I suspected this was making the Wine System tray homeless.
So I moved the Gnome panel back to the TOP, restarted Ubuntu, stopped and restarted Netmeter and the Netmeter icon appeared back in the panel where it belonged.
Would I be correct in thinking that Wine System Tray will only stay in the panel if the panel is at the top of the screen?
View 8 Replies
View Related
May 19, 2010
ssh to a machine on my network open up a terminal (gnome, xterm, whatever) and have it visible on that machines display be able to type and execute commands in that window, from my computer. i have kind of achieved this. on machine A, i ssh to machine B. on machine B, i open up a terminal and execute screen, C-a :multiuser on. on machine A, i execute screen -x and connect to the term on B. everything i type from A or B can be seen. i just want to be able to set this up without having to physically be at machine B. does that make sense?
View 7 Replies
View Related
May 16, 2011
i have a server program which accept multiple client connection and am using polling. like every 2 secs it will look to client whether any data is received after it binded. i have used setitimer but there is runtime error i got.. the server accept all client connection but doesn't execute any msg which client sent.
#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<netdb.h>
#include<unistd.h>
#include<pthread.h>
#include<string.h>
[Code]....
View 1 Replies
View Related
May 1, 2010
Where are the graphics stored for window controls? They change with the theme, so they must be part of the theme graphics. Specifically I'm looking for these: In Lucid's Ambiance theme, they're little plus and minus boxes. I prefer the rotating arrows and want to edit the theme to replace them.
View 2 Replies
View Related
Jul 14, 2010
Recently i have installed centos 5.3 from a 'CentOS-5.3-i386-bin-DVD.iso' which was downloaded about an year ago.It was conflicting with my graphics card(Intel� Graphics Media Accelerator X4500 integrated graphics subsystem) from the very beginning as i was unable to install it in graphical mode.So i did a text based installation and selected the 'Gnome' mode.But whenever i type 'startx' or Ctrl-alt-F7 ,Linux is unable to open the x-window and show a huge error regarding its inability to detect monitor resolution or graphics card.My hardware's are Intel quad core 2.33Ghz processor,1.96 GB ram,Intel Dg41 rq motherboard and on-board graphics card(X4500).
View 1 Replies
View Related
Jul 14, 2010
I'm a new user of Linux.Recently i have installed centos 5.3 from a 'CentOS-5.3-i386-bin-DVD.iso' which was downloaded about an year ago.It was conflicting with my graphics card(Intel� Graphics Media Accelerator X4500 integrated graphics subsystem) from the very beginning as i was unable to install it in graphical mode.So i did a text based installation and selected the 'Gnome' mode.But whenever i type 'startx' or Ctrl-alt-F7 ,Linux is unable to open the x-window and show a huge error regarding its inability to detect monitor resolution or graphics card.My hardware are Intel quad core 2.33Ghz processor,1.96 GB ram,Intel Dg41 rq motherboard and on-board graphics card(X4500).What should i do to operate Linux in graphical mode?Considering that I'm a beginner and everything i have to do is in the command mode,'detailed'.
View 2 Replies
View Related
May 15, 2011
The problem started with that I got a lot of errors about missing header files included from SDL_mixer.h when I attempted to compile my projects. I looked in the directory of this file, and all header files were missing except SDL_mixer.h Resolved this by compiling and installing the base SDL library package. Programs that got recompiled and were able to play music before suddenly produced no music, but sound effects worked. However, old binaries that were compiled prior to the issue with the missing header files played music fine. What the heck is this? I get no errors, nor warnings; none at compilation, none on execution. The kernel pool (dmesg) is clean. There is also another strange issue, which perhaps has nothing to do with the first issue. x86_1$ ./fire XDM authorization key matches an existing client!Couldn't initialize SDL: Couldn't open X11 display.
View 1 Replies
View Related
May 23, 2011
Is there, by chance, a fancy name to describe code that must be in a program but will never be executed? In one of my (Haskell) programs, I have some error-handling code that must be in the program to keep the compiler happy (due to the type checking). However I know that, due to the logical structure of the program, it is impossible for the code to be evaluated. I am curious if there is a technical name given to code that must exist but cannot be executed.
View 6 Replies
View Related
Aug 2, 2010
I've been able to get the right output that I need from sed, but how can I execute the string that sed actually outputs?
View 3 Replies
View Related
Jun 2, 2010
If I put
Code:
$r = exec('whoami');
echo $r;
into my php script, it works fine. However, if I put
Code:
$r = exec('myX11application');
echo $r;
it doesn't (to be precise, the script still works, but myX11application is not executed). Of course, scripts are run by user "apache", who doesn't have access to X11 server and doesn't even have DISPLAY variable defined.I installed virtual framebuffer Xvfb, created a small bash script:
Code:
Xvfb :2
export DISPLAY=:2
myX11application
and called it with exec from php, but it still doesn't run since it looks like Xvfb can't start if the normal X server is running (I need that for development purposes). The reported error from Xvfb is
Code:
(EE) config/hal: NewInputDeviceRequest failed (2)
Is there a solution to have php running your X11 applications with normal X server running?
View 6 Replies
View Related
Feb 11, 2011
I'm trying to compile a simple script for a ar71xx (bleeding edge /from snapshots) Openwrt router.I have previously compiled scripts for Kamikaze 8.09. I just copied the gcc file inside the SDK dir and used it without problems.
View 4 Replies
View Related
Apr 23, 2011
I'm doing a program and I want it to execute some code during n seconds. For example e put a command in the shell like this 'ls % 10' and the program should run the command ls for 10 seconds.I'm trying something like this:
Code:
pid = fork();
if(pid == 0) {
[code]....
View 2 Replies
View Related
Jan 13, 2011
I am executing a run command in a script after that i need to copy files into a directory which are the inputs for the run,on run a new shell is created and the remaining commands in the script does not execute,wot should i do to execute the remaining commands in the script??
View 2 Replies
View Related
Mar 30, 2011
Assume two applications, Application A and Application B. Both are written in C language.I had tried to use system() function in Application A to execute Application B. It success, but Application A cannot continue its own tasks before Application B exit. I want Application A to execute Application B, but Application A can continue its tasks without waiting for Application B to exit.
View 3 Replies
View Related
Jan 31, 2009
I want to execute a bash script in a C program. Bash script return some message and I want to store this message in a C program. Anybody know how can I do it.
I know I can use 'system("bash myscript.sh")' command in C. But I want to store the message which script return.
View 7 Replies
View Related
Jul 25, 2009
i want to execute iptables command via php. i can run simple command as echo 'iptables -h'; but i can't run ipables -L and i create excutable file (firewall.sh). i can run it on console but not done on php.
View 7 Replies
View Related
Jan 10, 2010
The two host one is Aix 5.3 and another is Suse 10sp2 the both have the same script which including the following parts:
if [ `date +%a` = "Mon" ];then
if [ "$RESULT" = "" ]; then
echo "The `hostname` $DATE ok"
[code]...
View 1 Replies
View Related
Jun 10, 2010
Anyone know how to execute SQLite db commands from C++?
View 1 Replies
View Related
Feb 19, 2014
I was writing code to execute system command, using GDM3 an logged in as root (just commented line #auth required
pam_succeed_if.so user != root quiet_success , in /etc/pam.d/gdm3).
When i execute:
Code: Select allvoid criarWindowsDialog::on_pushButton_2_clicked() {
ui->commandTextEdit->append("Processo iniciado ...");
QProcess processo;
QString comando;
QStringList args;
QString fullCommand;
QString stdOut;
QString stdError;
[CODE]..
View 0 Replies
View Related
May 19, 2010
My query is i have a.sql , b.sql , c.sql files which needs to be executed using "$ db2 -tvf a.sql"; "$ db2 -tvf b.sql"; "$db2 -tvf c.sql" , script with which i can execute all these sql files in a single shot.
View 4 Replies
View Related
May 29, 2011
i want to know whether we can write a shell script which can utilize 2 CPU's of a cluster...I heard its possible through C Shell [URL] But im familiar with bourne shell only....So is there a possibility to write Parallel Scripts.
View 5 Replies
View Related
Sep 1, 2010
I want to write a function that shall execute periodic. means if i set time 1 sec that function should execute in each 1 sec. let us call that function func1. But i dnt want to wait inside the func1 for that 1 sec. Meanwhile i want to run another function say func2 in background . some thing like less priority function. Whnever the time come to execute the periodic function func1 it has to go to func1 and then again in the waiting time , the second function func2 will resume. I wanted to know how to do it.. Can somebody tell me is it possible using signal in linux.
View 6 Replies
View Related
Dec 12, 2010
is there anyway i can execute an application Hidden from the user?i used to do WinExec(Path, SW_HIDE) under windows, and now i do fork() + execv() but i dunno where to specifiy any values
View 4 Replies
View Related
May 4, 2009
I'm looking for a general pointer, or label for what I am trying to do. Not a specific line of code. I've written a couple of small sh script that gets some user input, then calls several programs to run in the background with the &. My problem is, they all run at the same time. Is there some way to get these jobs to run sequentially rather than consecutively? If yes, what is this process called? I'm thinking there should be a way to line up background jobs in a job queue, similar to how a print queue works, one job at a time. After searching for a couple of hours, I'm thinking there must be a name for this, but I don't know what it is.
View 11 Replies
View Related