Hi, I am a bit curious.. Can I raise exception (with RaiseException()?) and get it handled in another thread?? This is needed for operation stop-functionality. I thought it would be nice to have one dialog where is stop button, and it stops whatever the main thread is doing.. Does anybody know how it is done in Visual Studio? It's possible to freeze the debugged process anytime, when debugging.
chilituna
Posts
-
Can I raise Exception in one thread and handle it in another? -
Safe functions after heap corruption?Hi, thanks for answers.. Went throught source code of those (sprintf, strcat, strcpy and strlen) and it seems sprintf is unsafe, since it uses malloc, but strcat,strcpy and strlen are so simple and straightforward and they don't use heap so they are probably? ok.. Well, have to replace sprintf with strcpy,strcat,strlen combination..
-
Safe functions after heap corruption?Hi, I am making a custom crash handler for application, and just thought about something. I am using sprintf, strcat and strlen in handler, are they safe to use even after possible heap corruption?
-
Simple MAPI Outlook outbox problemHi, my email sending with Simple MAPI works, sort of. But send mail is stuck in the outlook outbox and has to be mailed from there.. I have looked the examples in here, haven't found a clue for this problem. I have also tried the trick, where I send the mail in first session and then make a second session with MAPI_FORCE_DOWNLOAD on, but that doesn't help either. Any ideas?
-
BLOB size in oracle 8?Hi, managed to forgot how to figure out blob size in oracle 8. In oracle 9 and after it's simple: xyz blob column; abc table; select length(xyz) from abc; But in oracle 8, length doesn't accept blobs. I have vague memory it involved "lob describe" somehow or maybe vsize??? Thanks!
-
Using .NET with big C program?Thanks for advice, I guess I'll have to try some other approach. It's just that .NET has some neat features, I'd like to use..
-
Using .NET with big C program?Hi, I have been trying to figure out, is it possible to use .NET-classes with massive C-program in restricted cases? The program is compiled with Visual C++ - compiler. Converting the whole program to C# is out of question, so is it possible to use .NET only occasionally? :confused:
-
Checking other processes memory usage?Ok, thanks! :)
-
Checking other processes memory usage?Hi, I want to create a program that can monitor another processes memory usage.. Where it can find information about other processes memory usage?? WinAPI is large and wide and I am lost :sigh:
-
File locking problems??Hi, I am having problems with file locking. It seems some kind of lock remains on a file even after it has been closed. I have tried both C-library routines (fopen, fclose ... ) and native windows routines (CreateFile, CloseHandle.. ) but in both cases locking remains, and you can rename the file only after program has been closed. Routine where this happens contains some Oracle ProC-code and seems to start some own threads. Could they be the culprit? Anybody else have experience with this kind of thing?