Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Show Posts

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.

Messages - Pipec

Pages: [1] 2 3 4
1
Общий фор�?м / Re: "QuestCast" - подка
« on: September 02, 2015, 01:38:51 PM »
По

2
Общий фор�?м / Re: "QuestCast" - подка
« on: August 19, 2015, 01:18:16 PM »

3
Общий фор�?м / "QuestCast" - подка
« on: August 12, 2015, 03:11:19 PM »
В

4
Техниче�?кий фор�?м / Re: Эффекты
« on: August 28, 2009, 05:30:44 PM »
В

5
Хм... Зде

7
Обычно

8
Technical forum / Re: DLL loading
« on: August 02, 2009, 07:31:09 PM »
There is no way to identify the null pointer  ???

9
Техниче�?кий фор�?м / Re: Взаимодей
« on: July 29, 2009, 05:35:56 PM »
Базовыми возможно

10
Техниче�?кий фор�?м / Re: Взаимодей
« on: July 29, 2009, 04:27:38 PM »
Можно. Для этого

11
Техниче�?кий фор�?м / Re: Помогите
« on: July 28, 2009, 03:02:13 PM »
Давайте по порядк

12
Technical forum / Re: DLL loading
« on: July 28, 2009, 09:55:57 AM »
And yet the question  ;)

The external function is called in a loop and returns a pointer at structure (membuffer object) or null. Null - a sign of the end of the loop. I use script:
Code: [Select]
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 ...
  }
}

But the condition if (struc == null) is not fulfilled, when external function return null.
I used the condition if (struc.GetInt == null), but received an error, when external function return null
Quote
11:43:   Cannot use Set/Get methods on an uninitialized memory buffer

Question: How in my case, to determine that the external function returns a null?

13
Техниче�?кий фор�?м / Re: Вопро
« on: July 27, 2009, 05:16:33 PM »
Да в

14
Technical forum / Re: DLL loading
« on: July 27, 2009, 02:51:08 PM »
Realized their mistake!   ::)

"HM_FILE* hmFile" this is not a variable, this pointer. Solved the problem using MemBuffer

15
Technical forum / Re: DLL loading
« on: July 27, 2009, 11:01:29 AM »
Then another question. DLL have function:
Code: [Select]
int Magic_OpenFile(
   const char* file_name,
   HM_FILE* hmFile
);

Сalling convention - cdecl

In the engine, I declare it so:
Code: [Select]
external "magic.dll" cdecl int Magic_OpenFile(string, int);

That is right?
Because when I is calling:
Code: [Select]
var PtcFile;
Magic_OpenFile("test.ptc", PtcFile);
WME crushing with application error.

Quote
-----------------------------------------------------------------
---------- 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>

Pages: [1] 2 3 4

Page created in 0.025 seconds with 23 queries.