It is currently Sat May 18, 2013 11:00 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Linux & threads
PostPosted: Fri Oct 14, 2011 8:52 pm 
Offline
New User
New User

Joined: Tue Oct 04, 2011 8:06 pm
Posts: 6
Sorry for my bad english.
The problem with the program. Ported from a Windows, everything worked fine, the linearized commented out\changed all that swearing compiler. As a result, very often flies out error:
The debugged executable quit unexpectedly.
So please test the code, archive within the source file (0.7), icons, sound (you need to run code .) Ideally, it should work like this (filmed under Windows), but now I have it only takes a few windows.
Just really do not want to translate everything into one thread, if indeed trably linearized with threads.
When you turn purifier, swears on line 322 in the code, namely
Code:
 EndProcedure
, 0_0
He says, Invalid Memory access.
Please help!


Top
 Profile  
 
 Post subject: Re: Linux & threads
PostPosted: Fri Oct 14, 2011 9:24 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Feb 24, 2006 9:40 am
Posts: 290
In general a crash on "procedurereturn" points to a stack corruption. Assuming that you use PureBasic 4.51 on linux, there where bugs with CallFunctionFast() which where fixed for 4.60RC1.

Stack corruption can have many causes, some which "should" be found by the purifier. Check if you trash the stack or a memory buffer inside the procedure where the error occurs at "endprocedure".


Top
 Profile  
 
 Post subject: Re: Linux & threads
PostPosted: Wed Oct 19, 2011 2:15 pm 
Offline
Enthusiast
Enthusiast

Joined: Wed Sep 06, 2006 6:59 am
Posts: 151
Have you tried "ProcedureC" already? I remember similar behaviour where I created a PB verify callback function that I've forwarded via @Functionname() to an external GnuTLS function. I think with normal "Procedure" I've got some IMA alyways when I've used "ProcedureReturn" (or the Procedure ended). After playing a little around I've found out that it could be fixed in my case via changing from "Procedure" to "ProcedureC".

Greetings,
auser


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye