Search found 8 matches

by parsec
Thu Feb 27, 2025 8:39 am
Forum: Mac OSX
Topic: [SOLVED] Program aborted. (by external library)
Replies: 6
Views: 2902

Re: Program aborted. (by external library)


If you work with threads, you can't update the UI from the thread. You have to solve this with PostEvent.


Thanks but, to quote myself in the first post : " ..and in the network thread PostEvents are used for signalling when the UI needs updating. "

I solved the problem, self-inflicted of ...
by parsec
Wed Feb 26, 2025 3:45 pm
Forum: Mac OSX
Topic: [SOLVED] Program aborted. (by external library)
Replies: 6
Views: 2902

Re: Program aborted. (by external library)


Nope
Darn, I got the 1st "by external library" today, and it pointed to an "EnableDebugger" line… but it was just an Array.s(index) "overflow"; maybe it's some array index?


Could be some memory corruption but it's just guessing at this point since it doesn't seem possible to get a disassembly ...
by parsec
Tue Feb 25, 2025 5:55 pm
Forum: Mac OSX
Topic: [SOLVED] Program aborted. (by external library)
Replies: 6
Views: 2902

Re: Program aborted. (by external library)


Program aborted. (by external library)
I bet it's fieldIdx; the first field index starts from zero.


Nope, all calls to this proc are done by using constants (#SBField_xxxx) and the status bar is updated every 96 ms. An index overflow would crash it immediately or much much sooner. Note in the ...
by parsec
Tue Feb 25, 2025 11:56 am
Forum: Coding Questions
Topic: Program aborted. (by external library)
Replies: 0
Views: 299

Program aborted. (by external library)

Any tips on how to debug Program aborted. (by external library), i.e. how to find out which library is causing the issue?

I posted a detailed problem description in the OS specific/MacOSX forum: https://www.purebasic.fr/english/viewtopic.php?t=86348 but no response so far.
by parsec
Thu Feb 20, 2025 2:46 pm
Forum: Mac OSX
Topic: [SOLVED] Program aborted. (by external library)
Replies: 6
Views: 2902

[SOLVED] Program aborted. (by external library)

I'm getting a crash on my Mac M2 Sequoia 15.2/PB 6.20 which I'm not sure how to debug further as the error message is not very informative. Program will run under the debugger for hours then aborts with this message:

[10:27:04] Executable type: MacOSX - arm64 (64bit, Unicode, Thread)
[10:27:04 ...
by parsec
Sun Dec 15, 2024 12:05 pm
Forum: Coding Questions
Topic: Sftp RenameFTPFile problem [Solved: Needs help doc updating]
Replies: 6
Views: 856

Re: Sftp RenameFTPFile problem [Solved: Needs help doc updating]

infratec wrote: Sun Dec 15, 2024 12:02 pm Hm ...

maybe change directory is the problem that you need the full path.
SetFTPDirectory is called with full path already. And no errors are reported in the auth.log for this operation.


EDIT: And I also verify this with GetFTPDirectory before uploading.
by parsec
Sun Dec 15, 2024 11:56 am
Forum: Coding Questions
Topic: Sftp RenameFTPFile problem [Solved: Needs help doc updating]
Replies: 6
Views: 856

Re: Sftp


untested, but does this also happen if you use a Delay() between SendFTPFile() and RenameFTPFile()?


@Kiffi: Thanks for your suggestion. There is no difference when a Delay is inserted.

@infratec: Unfortunately I can't test your library atm because of running into the PB Demo line count limit ...
by parsec
Sat Dec 14, 2024 2:05 pm
Forum: Coding Questions
Topic: Sftp RenameFTPFile problem [Solved: Needs help doc updating]
Replies: 6
Views: 856

Sftp RenameFTPFile problem [Solved: Needs help doc updating]

Hello there, PB noob entering the chat...

I'm currently evaluating PureBasic and its SFTP feature in particular. I have problems with the code below -- RenameFTPFile fails (as does DeleteFTPFile) every single time. Opening connection, setting remote directory and uploading files works fine. So ...