It is currently Thu Nov 26, 2020 2:22 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [Done] Bug with fixed string
PostPosted: Tue Feb 10, 2015 8:40 am 
Offline
Always Here
Always Here

Joined: Sun Sep 07, 2008 12:45 pm
Posts: 5056
Location: Germany
Hi,

Wolfram discovered a bug and I verified it.

Environment:
Mac OS X 10.9 (64bit)
PB 5.31 32bit
Disabled debugger

Symptom:
Crash when the variable is assigned.

Code:
Structure SampleList
  Name.s{10}
EndStructure

NewList S_List().SampleList()
Define Name.s

Name = "Test"

AddElement(S_List())
MessageRequester("Debug", "after AddElement()")

S_List()\Name = Name  ; here it happens
;S_List()\Name = "Test"  ; works

MessageRequester("Debug", S_List()\Name)


With enabled Debugger it works.
Also with PB x64.

Reduced it a bit more, has nothing to do with structure:
Code:
Define Name.s
Define Test.s{10}

Name = "Test"

Test = Name  ; here it happens
; Test = "Test"  ; works
; PokeS(@Test, Name, 9)  ; workaround

MessageRequester("Debug", Test)


Bernd


Top
 Profile  
Reply with quote  
 Post subject: Re: Bug with fixed string
PostPosted: Mon May 18, 2015 11:59 am 
Offline
Enthusiast
Enthusiast

Joined: Thu May 30, 2013 4:39 pm
Posts: 523
I found a solution, defining the string with a default string works.

Code:
Define Name.s
Define Test.s{10} = "" ;-new

Name = "Test"

Test = Name  ; here it happens
; Test = "Test"  ; works
; PokeS(@Test, Name, 9)  ; workaround

MessageRequester("Debug", Test)


Top
 Profile  
Reply with quote  
 Post subject: Re: Bug with fixed string
PostPosted: Sat Feb 08, 2020 9:25 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 14179
Location: France
Seems to work OK in current version, can anybody else confirm ?


Top
 Profile  
Reply with quote  
 Post subject: Re: Bug with fixed string
PostPosted: Sat Feb 08, 2020 9:53 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2730
Location: Germany
Its work :wink:

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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