1
Общий фор�?м / Re: "QuestCast" - подка
« on: September 02, 2015, 01:38:51 PM »
По
Forum rules - please read before posting, it can save you a lot of time.
external "magic.dll" cdecl membuffer Magic_GetNextParticle();
var doPart = true;
var struc = new MemBuffer(20);
while(doPart)
{
struc = Magic_GetNextParticle();
if (struc == null)
{
doPart = false;
}
else
{
... operations on the data from the structure ...
}
}
11:43: Cannot use Set/Get methods on an uninitialized memory buffer
int Magic_OpenFile(
const char* file_name,
HM_FILE* hmFile
);
external "magic.dll" cdecl int Magic_OpenFile(string, int);
var PtcFile;
Magic_OpenFile("test.ptc", PtcFile);
WME crushing with application error.-----------------------------------------------------------------
---------- wme 1.8.010 crash report: 27-07-2009, 12:55 ----------
-----------------------------------------------------------------
wme.exe caused a EXCEPTION_ACCESS_VIOLATION in module magic.dll at 001B:6A581334
EAX=00000000 EBX=00000001 ECX=6A5D1060 EDX=0000000A ESI=003E4880
EDI=0012FDA4 EBP=0012FD74 ESP=0012FD0C EIP=6A581334 FLG=00010213
CS=001B DS=0023 SS=0023 ES=0023 FS=003B GS=0000
Stack trace:
001B:6A581334 (0x6A5D1060 0x024E0FF0 0x00000000 0x00BE7AE0) magic.dll
001B:6A58B9F1 (0x024E0FF0 0x00000000 0xB677B752 0x00000010) magic.dll, Magic_OpenFile()+33 byte(s)
001B:00455D48 (0x00BE7D90 0x00BE7CE0 0x00BE7AE0 0x00000010) wme.exe
001B:00456A82 (0x00AB43B8 0xFFFFFFFF 0x00BE6F40 0x00000000) wme.exe
001B:00AB0101 (0x00454790 0x00455920 0x69726353 0x63207470) <UNKNOWN>
001B:00455FD0 (0x8B550C41 0x5614246C 0x5718718D 0x18247C8B) wme.exe
001B:8D53128B (0x00000000 0x00000000 0x00000000 0x00000000) <UNKNOWN>