Question about "pointeur"
Posted: Wed Jan 10, 2007 4:01 pm
Hello all. I'm new (and enthousiast on using PB) and i 've some questions.
The first (the more important for now).
I've read this message : http://purebasic.hmt-forum.com/viewtopic.php?t=893 to know how pointer works.
So i've tested it and it works. But i still have a problem. On my code i've an "invalid memory access",but the message requester works.
My second question was : did PB team plan to optimize a bit, the "RenderMovieFrame" function. This function works very well but it use between 40 and 50 percent of cpu use on an athlon 64 3200. It is possible to improve it.
For the rest thanks at all the PB users
i just made some rectification on the code, but always the problem.
The first (the more important for now).
I've read this message : http://purebasic.hmt-forum.com/viewtopic.php?t=893 to know how pointer works.
So i've tested it and it works. But i still have a problem. On my code i've an "invalid memory access",but the message requester works.
Code: Select all
Structure Infos
info1.s
info2.s
EndStructure
Procedure toto(*chaineretour.Infos,myfile.s)
OpenLibrary(0,"toto.dll")
Handle = CallFunction( 0, "dll_handle")
CallFunction( 0, "dll_func1",Handle, myfile)
*chaineretour\info1 = PeekS(CallFunction( 0,"dll_info1",Handle,params1,params2,))
MessageRequester ("", *chaineretour\info1)
CallFunction( 0, "dll_close")
CloseLibrary(0)
EndProcedure ;problem on this line
toto(@echange.Infos,Fichier$)
Debug echange\info1
For the rest thanks at all the PB users

i just made some rectification on the code, but always the problem.