TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Stefan Schorsch
from: Russell Coker
date: 1994-06-19 14:47:36
subject: Cset problem.

RC>    I have a multi-threaded application that I am 
 RC> writing using Cset++2.1.
 RC> The threads are created using the _beginthread() 
 RC> function (there are no
 RC> compiler errors or warnings when compiling my code), and a strange
 RC> exception gets raised at run time, here's the 
 RC> error I get when running my
 RC> program:

 RC> "Exception = 80010001 occurred at EIP = 1a67b."

 RC>    Now the child thread gets created and runs 
 SS> perfectly.  In every way my
 RC> program is working as designed except for that error message.

 SS> If you are writing C++ Code perhaps you should take the IThread class.
 SS> If not I have no idea.

  No, plain ANSI C.  Anyway I solved all my problems with this program by
allocating 16K stacks for each thread and by not using any library calls
(except for a few sscanf()s in thread 1) in my program.  Now it all works
fine.  I believe that I should have been able to use the libraries in my
program, but I didn't really need any library functions except sscanf() so
it was easier to just use the OS/2 APIs (which are a joy to program to in
comparison to the UNIX APIs).


  cya


--- Maximus/2 2.01wb

* Origin: Multi - 61-3-739-7145 (3:633/363)
SEEN-BY: 54/54 620/243 632/301 348 365 386 998 633/104 252 260 357 363 371
SEEN-BY: 633/373 634/384 635/210 502 503 636/100 638/100 640/820 690/660
SEEN-BY: 711/409 413 430 807 808 809 934 712/353 623 713/888 800/1 2442/0
@PATH: 633/363 260 371 635/503 632/348 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™.