thanks
wendyyue
Posts
-
I have C++ exe file( no source code) and need to run many large dataset under unix, but how to know the memeroy usage for one dataset? -
I have C++ exe file( no source code) and need to run many large dataset under unix, but how to know the memeroy usage for one dataset?I think "top" is not good and if using the profiler, it seems no free download, any ideas?
-
how to merge the three dll to one dll?Thanksno. this problem really make me annoying. do you have any suggestions.?
-
how to merge the three dll to one dll?ThanksI have created the dll project, this dll needs other two dll, and I want to finally provide only one dll(the one generated from this dll project, and hopefully the other two dll can merge in this dll),how should I do? It seems the directly genrated dll is not ok.
-
jni problem, can not call method outside the jni method??JNIEXPORT jstring JNICALL Java_playaudio_BeatTrack_myBeatTrack (JNIEnv *env, jobject obj, jstring wavfile) { const char* filename = env->GetStringUTFChars(wavfile,0); BeatTrack(filename); env->ReleaseStringUTFChars(wavfile,filename); return NULL; } for my BeatTrack method, I just need the filename, then it can run, if I comment the BeatTrack(filename);, then no problem, for the java calling, of course, my BeatTrack(const *char filename) has no problem, cause I have test it,, but I call this method in java, the error is as follows, Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing windows-x86) # Problematic frame: # C [beattrack.dll+0x130b] # # An error report file with more information is saved as: # D:\programs\playAudio\hs_err_pid11684.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. any idea??
-
how to draw waveform in real-time?hi I am new to java sound, and want to play the sound while draw the waveform in realtime , any idea or open souce?
-
how can I choose to build the GUIhi I have the core algorithm writen in c, and want to build a nice GUI for that algorithm, how can I do it , to embeded into Java, or use MFC, which one is better to get the nice GUI?
-
about the access violation error at the malloc sentenceyes it does takes me a lot of time. just now I check the call stack find out that there is a problem in the following statement AT1=(int *)malloc(sizeof(int)*100); AT2=(int *)malloc(sizeof(int)*100); the AT1 can get the pointer and a valid value but the AT2 is 0x000000, can it means that the malloc did not allocate the memory for the AT2, because the memory is used up ? I have run it for 40 hours
-
about the access violation error at the malloc sentencehi, the complier tell me this error happens at the statement of the malloc sentence, but I wonder how can this happens for this statement AT2[nAT2].itemset=(int *)malloc(sizeof(int)*up->lb[i].itemlen); usually when the pointer points to the invalid error or the array is out of index then this error happens, but now the very strange thing is I have run the program for 40hours then the error jump out? can anyone help me to analyze this error?
-
about the error in just-in-timehi, before I install the visual studio 2005, I use the vc 6.0 to debug, when I run the program, if finally there are some bug, the visual 6.0 will jump to the line that has bugs, but after i installed the vc 2005, for the same program(I run it in vc 6.0), if I run it, then the vc tells me I have not start the just-in-time debugger, but I can not find out where to set just-in-time debugger, any ideas?
-
about the .h file in c and C++ [modified]ask for help
-
about the .h file in c and C++ [modified]can anyone help me?
-
about the .h file in c and C++ [modified]sorry I did not clear my idea. I mean. originally, I use the pure c to code, but I want to use the list (from STL) to do some operation, so I insert some code which use the list varible list<<int >> a, and then I need to include the <<list>> file and <<algorithm>> file, right? But when I complie it, the debugger tells the a is not declared , but I have include the <<list>>, so I am not sure why, it is not runnable ?
-
about the .h file in c and C++ [modified]so how to solove it and make it runnable in vc? you get my problem?
-
about the .h file in c and C++ [modified]dear guys, now my problem is I have use a lot of .h file to code , say, malloc.h stdlib.h and then I want to use some stl to code because it has some good method, so I include the string list, but then I complie then all, the debugger tells me the list variable is not declare it, and then I try to use , and found it is different from list.. anyone can tell me how to make my code run without such error?
modified on Monday, March 31, 2008 7:26 AM
-
the debug problem in VC++say i have a function int fun(int *a), and other function int fa(); int fb(), int fc(),....int fn(); all the them will call the fun(int *a), but the problem is, when I run the program, the vc++ tells me some of them pass the NULL pointer to the fun(int *a) which make mistake, but could not tell me which function calls the fun(int *a) and then pass the NULL pointer to it, so dear guys, how could I know which one call the fun(int *a) that pass the NULL pointer? Thanks.
-
help about this stack overflow?#include #include int min(int a, int b, int c) { int temp=a<=b?a:b; return temp<=c?temp:c; } int MinOperation(int len1, char str1[], int len2, char str2[]) { int count[10001][10001]; int i,j; for(i=0; i<1001; i++) count[0][i]=0; for(i=0; i<1001; i++) count[i][0]=0; for(i=1; i<=len1; i++) for(j=1; j<=len2; j++) { if(str1[i]==str2[j]) count[i][j]=min( count[i-1][j-1], count[i-1][j]+1, count[i][j-1]+1); else count[i][j]=min( count[i-1][j-1]+1, count[i][j-1]+1, count[i-1][j]+1 ); } return count[len1][len2]; } void main() { int i=0; int len1; int len2; char str1[1001]; char str2[1001]; scanf("%d%s", len1, (str1) ); scanf("%d%s", len2, (str2) ); puts(str1); puts(str2); printf("%d", MinOperation(len1 ,str1 ,len2 ,str2)); } I am not sure why there exist a bug stack overflow?
-
HELP how to insert the dll into a exe?I have the code which need to link the dll to run , but I do not want to it link the dll to run, so how can I insert the dll into the exe, so that when I double click the exe it can run without explictly linking the dll
-
about the dll and libin a source file(.cpp and .h), how can I know it call the dll? if it calls the dll, how can I make it call the static lib instead of dll, can anyone give me specific instruction about this topic?
-
how to watch the content which is pointed by a pointerthanks , you answer is right.