GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 12-Jan-2009, 23:32
arunkani arunkani is offline
New Member
 
Join Date: Jan 2009
Posts: 2
arunkani is on a distinguished road

How to stop DLL?


we have created a dll in c.
From java we are calling that c dll.
The dll is linking and running properly
In the middle of the execution, how we can stop the dll and return the control to java?
  #2  
Old 13-Jan-2009, 02:09
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 1,032
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough

Re: how to stop dll


Quote:
Originally Posted by arunkani
we have created a dll in c.
From java we are calling that c dll.
The dll is linking and running properly
In the middle of the execution, how we can stop the dll and return the control to java?

What do you mean by "stop the dll"? Is some function in the dll running in a separate thread? Otherwise functions will return when they are done executing...

Best regards,
Lucian
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
  #3  
Old 13-Jan-2009, 02:37
arunkani arunkani is offline
New Member
 
Join Date: Jan 2009
Posts: 2
arunkani is on a distinguished road

Re: how to stop dll


ok,
can we call another function of dll using separate java thread while the execution of first function?
  #4  
Old 13-Jan-2009, 02:41
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 1,032
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough

Re: how to stop dll


Quote:
Originally Posted by arunkani
ok,
can we call another function of dll using separate java thread while the execution of first function?

Assuming the first call returned, yes. You can spawn a new Java thread or call a C function that starts its own thread. You will have to rely on the code in the dll to do its own multithreading synchronization though.

Best regards,
Lucian
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
 
 

Recent GIDBlogToyota - 2009 May Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EbizWebDirectory.com - Best Ecommerce Directory your one stop online ecommerce guide ebwebdirectory Member Announcements, Advertisements & Offers 0 16-Jan-2006 04:01
How to update newly added Virtual directories without stop and start of existing itsvasu Apache Web Server Forum 0 02-Mar-2005 08:04
HELP! Stop php executing! dopee MySQL / PHP Forum 4 05-Feb-2005 10:01
How to stop a aplication electron C Programming Language 1 20-Sep-2004 09:14

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 23:34.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.