It is currently Sat May 18, 2013 1:52 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Compiler constant exists multiple times
PostPosted: Wed Feb 01, 2012 8:30 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Dec 03, 2011 5:54 pm
Posts: 252
Hi,

today i noticed that the compiler constant, which i declared recently, was stored at the end of the document for multiple times. It looked like this:
Code:
; IDE Options = PureBasic 4.61 Beta 1 (Linux - x64)
; CursorPosition = 894
; FirstLine = 153
; Folding = AAAAwBA9
; EnableXP
; CPU = 5
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
...

I wouldn't have noticed it if the IDE wouln't crashed at startup. Only by renaming the sourcecode folder I was able to start the IDE again. The error was caused by the autoload of the related document. I am not sure whether it is a specific Linux problem. After removing the surplus lines, the document could be loaded and the IDE did not crash again.

I am using the same source code on Linux and Windows. The compiler constant is used to execute some codelines if a modul runs by itself (#Self=1), but not, if it is embedded in a project (#Self=0).

Best regards,
Uwe

_________________
Purebasic 5.11 | Fedora 18 (32-bit)


Top
 Profile  
 
 Post subject: Re: Compiler constant exists multiple times
PostPosted: Fri Feb 03, 2012 8:59 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Dec 03, 2011 5:54 pm
Posts: 252
Hi,

you can even see it at the compiler options dialog:
Image

Best regards
Uwe

_________________
Purebasic 5.11 | Fedora 18 (32-bit)


Top
 Profile  
 
 Post subject: Re: Compiler constant exists multiple times
PostPosted: Mon Feb 27, 2012 8:08 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Dec 03, 2011 5:54 pm
Posts: 252
Hi,

Today i found out that this wrong behaviour happens if the code was handed over to a user tool and reloaded after the tool has finished. The plugin is a self-written one and does not generates the duplicate lines. The problem does also occur on Windows.

Best regards
Uwe

_________________
Purebasic 5.11 | Fedora 18 (32-bit)


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 0 guests


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