Coding

 Reply to this postStart new topic

Weird memcpy behaviour

badboy
post Nov 29 2013, 10:15 PM
Post #1


Trained Member

Posts: 76
From: Nederland, NL
Joined: 1-May 12



Link to video

Memcpy and the code after it is skipped in my plugin for some reason. Has anyone ever had something like this happen? It's weird because if the debugger fails, the code will be executed and the plugin should crash later. But the game doesn't crash later, so the code is skipped.

EDIT:
I passed a value instead of a pointer, but it is still weird that the dll is unloaded without any warning or crash.

This post has been edited by badboy: Nov 30 2013, 12:42 PM
Go to the top of the page
 
+Quote Post
fastman92
post Nov 30 2013, 12:41 PM
Post #2


Trained Member

Posts: 77
Joined: 25-October 10



I don't know... you're doing something wrong obviously. Computer don't make errors, so you need to spot your buggy code since there's a reason for a program fault.

Check every thing before it goes wrong.
Go to the top of the page
 
+Quote Post
Deji
post Nov 30 2013, 02:15 PM
Post #3


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



^ unhelpful mellow.gif

I've also found that loaded plugins exceptions aren't handled when they fail during initialization. The library is just unloaded and the program tries to continue. You could try enabling "First-chance exceptions" in Visual Studio, if that's your debugger... it seemed to help in my case.


--------------------
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: