X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: hudoshin AT gmail DOT com Newsgroups: comp.os.msdos.djgpp Subject: there is problem, can help? Date: 22 Nov 2005 08:23:20 -0800 Organization: http://groups.google.com Lines: 62 Message-ID: <1132676600.304931.228860@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: 217.118.78.1 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1132676605 11546 127.0.0.1 (22 Nov 2005 16:23:25 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Tue, 22 Nov 2005 16:23:25 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Win98; ru-RU; rv:1.7.5) Gecko/20041108 Firefox/1.0,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse AT google DOT com Injection-Info: g43g2000cwa.googlegroups.com; posting-host=217.118.78.1; posting-account=wuZfnA0AAAC_LH06LudTg7zjkTT-X5In To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi All ! here is code: ------------------------------------------------------------------ #include #include #include #include int main() { /////////////////// FILE * fi; int fid; int ferr; fi = fopen("c:\\aaa","wt"); fid= fileno(fi); ferr = fileno(stderr); close(ferr); dup2(fid,ferr); /////////////////// allegro_init(); int err; err=set_gfx_mode(GFX_AUTODETECT,640,480,0,0); perror(allegro_error); if(err==0) rectfill(screen,0,0,639,479,makecol(255,0,0)); getch(); allegro_exit(); } ----------------------------------------------------------------------------------------- here is result: ----------------------------------------------------------- VESA function 0x4F02 failed: No such file or directory (ENOENT) Shutting down Allegro Exiting due to signal SIGSEGV Page fault at eip=00001f98, error=0004 eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 esi=00000054 edi=0008cce4 ebp=0010cc78 esp=0010cc60 program=c:\uni256\UNI256.EXE cs: sel=00a7 base=10000000 limit=0011ffff ds: sel=00af base=10000000 limit=0011ffff es: sel=00af base=10000000 limit=0011ffff fs: sel=00bf base=00000000 limit=0010ffff gs: sel=00bf base=00000000 limit=0010ffff ss: sel=00af base=10000000 limit=0011ffff App stack: [0010cce4..0008cce4] Exceptn stack: [0008cc3c..0008acfc] Call frame traceback EIPs: 0x00001f98 0x000020b5 0x00064988 ---------------------------------------------------------------------- sense: on usual PC works fine:-) but on industrial PC (STPC) gives result brought above, truth there there is controller of the light node (CLN), but for but for programming this no difference though CRT registers were reprogramming for some mode VESA this CLN has digital matrix with resolution 320x240 practically all have tried, CAN BE THERE IS INTERESTING THOUGHT?! hope and wait, truly yours Wert