From: "Chia" Newsgroups: comp.os.msdos.djgpp Subject: Allegro File-Selector Date: Mon, 30 Mar 1998 19:04:40 -0600 Organization: 404 Software Lines: 21 Message-ID: <6fpfeu$6pb@nnrp2.farm.idt.net> NNTP-Posting-Host: max2-28.top.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I've been trying to get the allegro file-select function figured out and it sort of works... here's my code: void load_file(void) { char name_of_file[256]; *get_filename(name_of_file) = 0; if (file_select("Open File:", name_of_file, "htm;*")) { load(buf); } else quit_program(); } Now, this seems to work allright... it brings up a window and I can click on files and it quits because there's no loop yet, and I can click on cancel or ok and it quits and that's fine, but the problem is that if I click on a different directory or drive, it shuts down Allegro due to "Sigsegv." I'm relatively sure that I'm forgetting something here but I can't figure out what it is. Any ideas? // chia AT top DOT net -- http://www.top.net/chia/