Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3780

Unhandleable errors in Preemptive Thread

$
0
0

my application instantiates 100 cooperative threads
it works but in this configuration 100 threads are a queue of 100 operation to main app thread
i’m tring to convert the app to use preemptive threads

in the all part of the code there is try …catch construct included the code of inside thread
i have set the stacksize of thread to 2048000
i have changed the kind of thread from cooperative to preemptive

if i’m in debug mode the app work few minutes then stops but do not shows errors,
no handed errors (intercepted by try catch structure) and no unhandled error intercepted from unandledErrorEvent of app

in code of the thread there is no referements to app variables or referements to part of the gui elements
all of variables , sub and functions are inside the thread scope

before call threads start method i set the value of thread proprierty (idRecord) , this porperty contains the id of the record of a mysql db’s table that thread must manipule.

then the thread open new db connection, retrieve this record, then make update of this row , then close db connection

the app works, but crash without handlable errors

how can i find the problem?
there is a best pratice ?

11 posts - 6 participants

Read full topic


Viewing all articles
Browse latest Browse all 3780

Trending Articles