| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Cset problem. |
RC> Also is there a list available of which libraries/library functions RC> are multi-thread friendly? The docs that I've got RC> (the ones that come with Cset++ 2.1) don't seem to *ALL* of the functions are multi-thread friendly, when you compile/link with /Gm. This does not prevent you from doing silly things though. For example,calling getc() for the same stream in different threads will work, but which thread each piece of data goes to is anyone's guess. Calling getc() with different streams should work fine. If you find that your program behaves better when you replace one of the getc's with DosRead(), you have probably prevented the error by changing the timing of your program (a DosRead() of one byte is a LOT slower than getc()). Rememeber, your exception was a "divide by zero"; This doesn't sound like something that would happen inside of getc(). ps: why are you calling _getc() instead of getc()? I can't even find a _getc() in the library reference. --- Maximus/2 2.01* Origin: Beer bellies = great waist. (905)858-8488 (1:259/414) SEEN-BY: 54/54 620/243 632/348 640/820 690/660 711/409 413 430 807 808 809 SEEN-BY: 711/934 712/353 623 713/888 800/1 2442/0 @PATH: 259/414 400 99 98 3615/50 229/2 2442/0 711/409 54/54 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.