316
General discussions / ATI fix
« on: March 21, 2011, 03:21:24 pm »
I'm so trying this now.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
You should celebrate the move to GIT by getting the ATI fix out on it
sf::Sprite Test(Ball);
for (i=0; i<20; i++)
{
[...]
}
g++ -Wall -c
g++ --help
"you need to write your code, include all the necessary headers and files, compile it and then...."
#include <stdio.h>
#include <Windows.h>
int main(int argc, char** argv) {
printf("Before loadLibrary\n");
HMODULE module = LoadLibrary(L"sfml-window-2.dll");
printf("After loadLibrary (module = %d)\n", module);
return 0;
}
JNIEXPORT jlong JNICALL Java_org_sfml_Image_nativeCreate (JNIEnv *env, jobject obj) {
return (jlong)(new Image());
}
JNIEXPORT void JNICALL Java_org_sfml_Image_nativeDelete (JNIEnv *env, jobject obj) {
Image* ptr = PTR(Image);
if(ptr) delete ptr;
}
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x5f0d530e, pid=1176, tid=1484
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [OPENGL32.dll+0x530e]
j org.sfml.Image.nativeDelete()V+0
j org.sfml.SFMLNativeObject.finalize()V+45
v ~StubRoutines::call_stub
V [jvm.dll+0xecf9c]
V [jvm.dll+0x1741d1]
V [jvm.dll+0xed01d]
V [jvm.dll+0xf5e2f]
V [jvm.dll+0xf8b24]
C [java.dll+0x2115]
j java.lang.ref.Finalizer.runFinalizer()V+45
j java.lang.ref.Finalizer.access$100(Ljava/lang/ref/Finalizer;)V+1
j java.lang.ref.Finalizer$FinalizerThread.run()V+11
v ~StubRoutines::call_stub
V [jvm.dll+0xecf9c]
V [jvm.dll+0x1741d1]
V [jvm.dll+0xed167]
V [jvm.dll+0xed1dd]
V [jvm.dll+0x116290]
V [jvm.dll+0x1d0414]
V [jvm.dll+0x173e4c]
C [msvcr71.dll+0x9565]
C [kernel32.dll+0xb50b]
GLCheck(glDeleteTextures(1, &Texture));