Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JNI calling VC DLL problem

Thread Tools

JNI calling VC DLL problem

iason demiros
Posts: n/a
Hi everybody,

if you could please advice:
In a web-based app multiple users can query a VC DLL. The function
that is called is a Search(char *string) function. The latter is
exported by a DLL that fetches information from a hash database, gdbm.
When using MonitorEnter, MonitorExit on JNI side it has very low
performance but works. Else, it mixes results from different users, in
a non-consistent manner. This is natural since the DLL is not
multithreaded. The question is: Should I create a separate thread at
the level of the Search() function? or when accessing the gdbm? should
that be mutex? or semaphore? or compilation with Appartment Threaded?
or having DATA MULTIPLE at linker level? Thanks in advance for your

Jason Demiros Removed)
Reply With Quote

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
JNI problem: Calling java from C++ dll Java 8 10-13-2006 09:52 AM
Second long argument to a JNI call on a Win32 DLL contains zero when it reaches the DLL pcarr01 Java 3 02-17-2005 09:30 AM
Re: JNI: Error loading DLL from JNI DDL vasanth Java 0 01-25-2005 11:03 AM
Re: JNI: Error loading DLL from JNI DDL vasanth Java 0 01-25-2005 11:01 AM
msvcrt.dll, msvcirt.dll, msvcrt20.dll and msvcrt40.dll, explanation please! Snoopy NZ Computing 16 08-25-2003 12:34 PM