I have found the culprit.
My procedure ChooseNode was defined with a return value of type .l by accident. Should of course be .i
Still wondrous that it has worked on older PB x64 versions. Maybe the XML library wasn't x64 until recently?
Anyhow, thanks for Your input, guys. Back to bean stringing ...
Search found 20 matches
- Sun Jun 16, 2024 6:49 am
- Forum: Windows
- Topic: Kick out on PB > 6.04 when handling XML files
- Replies: 7
- Views: 2744
- Sun Jun 16, 2024 6:30 am
- Forum: Windows
- Topic: Kick out on PB > 6.04 when handling XML files
- Replies: 7
- Views: 2744
Re: Kick out on PB > 6.04 when handling XML files
Yes, tried purifier. No diff. Just 'Invalid memory access - address xxxxxxxxxxx'
- Sat Jun 15, 2024 4:37 pm
- Forum: Windows
- Topic: Kick out on PB > 6.04 when handling XML files
- Replies: 7
- Views: 2744
Re: Kick out on PB > 6.04 when handling XML files
Ah, okay. Now I have checked this and apparently my home computer that has both x86 and x64 versions, compiled this code with the x86 version. That's why it worked at home.
So, now PB6.10 x64 and 6.11 x64 doesn't work with *any* copy of my code on *any* computer. At least it's consistent now. :)
I ...
So, now PB6.10 x64 and 6.11 x64 doesn't work with *any* copy of my code on *any* computer. At least it's consistent now. :)
I ...
- Sat Jun 15, 2024 7:05 am
- Forum: Windows
- Topic: Kick out on PB > 6.04 when handling XML files
- Replies: 7
- Views: 2744
Re: Kick out on PB > 6.04 when handling XML files
Okay, now I have made some more tests.
At first, when I compiled and ran the source code here at home, everything worked just fine with PB6.10... :?:
I then ran the copy that I've got in another location that I share with my work computer - and it crashed in the same way as yesterday...
Now I ...
At first, when I compiled and ran the source code here at home, everything worked just fine with PB6.10... :?:
I then ran the copy that I've got in another location that I share with my work computer - and it crashed in the same way as yesterday...
Now I ...
- Fri Jun 14, 2024 1:34 pm
- Forum: Windows
- Topic: Kick out on PB > 6.04 when handling XML files
- Replies: 7
- Views: 2744
Kick out on PB > 6.04 when handling XML files
Hi guys,
before I'm diving in to boil down my code to get the exact code that fails, I'd like to ask if anyone of You have encountered problems with the XML file library on PB versions higher than 6.04?
The fifth line from the bottom in my code below fails hard every time - like if the nodes would ...
before I'm diving in to boil down my code to get the exact code that fails, I'd like to ask if anyone of You have encountered problems with the XML file library on PB versions higher than 6.04?
The fifth line from the bottom in my code below fails hard every time - like if the nodes would ...
- Sat Jan 21, 2023 7:12 pm
- Forum: Announcement
- Topic: PureBasic 6.01 LTS is released !
- Replies: 92
- Views: 33255
Re: PureBasic 6.01 beta 1 is available
Take a look on the museum and download PB 2.00 to see all the way we went during this journey :). May be safer to install in a VM 8)
I remember well how excited I was when I bought PureBasic for my Amiga in 1999 or if it was 2000, I was so impressed and I had such big hopes that it would be ...
- Sat Jan 21, 2023 7:06 pm
- Forum: Announcement
- Topic: PureBasic 6.01 LTS is released !
- Replies: 92
- Views: 33255
Re: PureBasic 6.01 beta 1 is available
Thanks for Your hard work!
I'm amazed of how well the C backend works!
Sitting on project with some pretty hairy structures and lists weaved into each other so I will probably wait before I try the new update.
I'm amazed of how well the C backend works!
Sitting on project with some pretty hairy structures and lists weaved into each other so I will probably wait before I try the new update.

- Sun Sep 11, 2022 1:24 pm
- Forum: Coding Questions
- Topic: High resolution timer module
- Replies: 6
- Views: 1038
Re: High resolution timer module
Updated source as if anyone would be interested in this simple code :P
(I made a last minute update before uploading the first code, which made it not to behave the same as the output I posted on the top).
Now it should behave the same and I took Little Johns advice to make a "wrapper" instead ...
(I made a last minute update before uploading the first code, which made it not to behave the same as the output I posted on the top).
Now it should behave the same and I took Little Johns advice to make a "wrapper" instead ...
- Sat Sep 10, 2022 7:57 pm
- Forum: Coding Questions
- Topic: High resolution timer module
- Replies: 6
- Views: 1038
Re: High resolution timer module
no offense.
I personally prefer to make a task as simple and short as possible. (And always to do without modules.)
Non taken. You were told to feel free to comment. :wink:
I was actually quite reluctant to Modules until a couple of years ago. But now when I know how they behave, I write no ...
- Sat Sep 10, 2022 7:47 pm
- Forum: Coding Questions
- Topic: High resolution timer module
- Replies: 6
- Views: 1038
Re: High resolution timer module
That will actually be a good idea. Thx! Not used to use procedures as pointers, so this module was more or less a little education for me.Little John wrote: Sat Sep 10, 2022 1:45 pm
I'd write two "wrapper" functions and declare them in the public module part like so
- Sat Sep 10, 2022 12:01 pm
- Forum: Coding Questions
- Topic: High resolution timer module
- Replies: 6
- Views: 1038
Re: High resolution timer module
Comments to the timer resolution.
It depends on each and every machine. My current machine has a resolution of 10 million. My old machine a bit under that... and so on... The module should calculate the values to nanoSeconds (a billionth of a second) but that doesn't mean the hardware has that ...
It depends on each and every machine. My current machine has a resolution of 10 million. My old machine a bit under that... and so on... The module should calculate the values to nanoSeconds (a billionth of a second) but that doesn't mean the hardware has that ...
- Sat Sep 10, 2022 11:57 am
- Forum: Coding Questions
- Topic: High resolution timer module
- Replies: 6
- Views: 1038
High resolution timer module
Hi all!
Doing some experimenting with a timer module that I want to use in some of my programs.
As it is now, I use prototypes to be able to call the correct function depending on if the target machine has a high resolution timer available or not. The drawback with this approach is that if I forget ...
Doing some experimenting with a timer module that I want to use in some of my programs.
As it is now, I use prototypes to be able to call the correct function depending on if the target machine has a high resolution timer available or not. The drawback with this approach is that if I forget ...
- Thu Aug 04, 2022 9:16 am
- Forum: Coding Questions
- Topic: Do procedures really have to appear first?
- Replies: 29
- Views: 4155
Re: Do procedures really have to appear first?
Yes. And the parameters have to be exact the same as in the procedure.
Just out of curiosity: What speaks against declaring the procedures before the main code? My codes look like
- EnableExplicit
- Use xxx -commands
- Enumerations
- Structures
- declaration of variables
- XIncludes ...
- Wed Jul 27, 2022 6:44 am
- Forum: General Discussion
- Topic: Understanding PureBasic compilation
- Replies: 18
- Views: 3146
Re: Understanding PureBasic compilation
Thanks a lot for this thread.
It made me realize I haven't been using the C backend yet... :D
I had a vague feeling it wasn't using it but I both didn't know how to change it in the IDE and hadn't put the time in it to be sure and find out.
So, I guess it's was a smart choice to not make the C ...
It made me realize I haven't been using the C backend yet... :D
I had a vague feeling it wasn't using it but I both didn't know how to change it in the IDE and hadn't put the time in it to be sure and find out.
So, I guess it's was a smart choice to not make the C ...
- Tue Jun 18, 2019 4:53 pm
- Forum: Windows
- Topic: Sort_NoCase became a case
- Replies: 5
- Views: 2712
Re: Sort_NoCase became a case
@Andre:
I actually solved it with the same trick but my extra structured element was in upper case. (much better, don't you think?
)
It was when I recently returned to this code, I came to remember this little snag.
Thanks for your input!
I actually solved it with the same trick but my extra structured element was in upper case. (much better, don't you think?

It was when I recently returned to this code, I came to remember this little snag.
Thanks for your input!