# CURLSMultiMBS.SharedINstance AutoPerform Doesn't Work Inside TransferFInished Handler

**URL:** <https://forum.xojo.com/t/curlsmultimbs-sharedinstance-autoperform-doesnt-work-inside-transferfinished-handler/88879>\
**Category:** Extras\
**Created:** [September 13, 2026, 1:07pm UTC](https://forum.xojo.com/t/curlsmultimbs-sharedinstance-autoperform-doesnt-work-inside-transferfinished-handler/88879 "2026-09-13T13:07:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [September 13, 2026, 1:07pm UTC](https://forum.xojo.com/t/curlsmultimbs-sharedinstance-autoperform-doesnt-work-inside-transferfinished-handler/88879/1 "2026-09-13T13:07:54Z")

</div>

When I call CURLSMultiMBS.SharedInstance.AddCURL from within the TransferFinished handler of another CURL the CURL is added to the Multi’s queue but not performed, even if I set AutoPerform to True again.

I found two workarounds:

1. Set Autoperform to False and then to True again. Not thoroughly tested, but works in at least one case.
2. Use Timer.CallLater to call a separate method for dispatching additional CURLs, thus allowing the TransferFinished handler to complete.

If there’s no fundamental reason for the behavior it’d be great to have it fixed in a future update.

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [September 13, 2026, 7:24pm UTC](https://forum.xojo.com/t/curlsmultimbs-sharedinstance-autoperform-doesnt-work-inside-transferfinished-handler/88879/2 "2026-09-13T19:24:27Z")

</div>

Do you reuse the same CURL object?  
When you get the event, the CURL object is still in the queue.  
And CURL doesn’t let you add the same CURL to the queue again.

With CallLater, you let the method return and remove it from the queue, so you can add it again later.

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [September 13, 2026, 7:38pm UTC](https://forum.xojo.com/t/curlsmultimbs-sharedinstance-autoperform-doesnt-work-inside-transferfinished-handler/88879/3 "2026-09-13T19:38:48Z")

</div>

No, I do not reuse the same CURL object,

I instantiate a CURL to get a directory listing from the server.  
In its TransferFinished event I iterate over the listing and instantiate a new CURL for each file in the listing to download it.

I can see that the CURLs have been added by calling SharedInstance.CURLS, but they do not perform until I toggle AutoPerform.

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [September 13, 2026, 7:57pm UTC](https://forum.xojo.com/t/curlsmultimbs-sharedinstance-autoperform-doesnt-work-inside-transferfinished-handler/88879/4 "2026-09-13T19:57:26Z")

</div>

Can you change my “Multi Transfer” sample file to break?  
or make a little sample project?

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [September 13, 2026, 8:23pm UTC](https://forum.xojo.com/t/curlsmultimbs-sharedinstance-autoperform-doesnt-work-inside-transferfinished-handler/88879/5 "2026-09-13T20:23:26Z")

</div>

It seems to work as expected when I restructure the example project.

One difference is that the example is using http whereas my app uses SFTP to an S3 bucket.

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [September 13, 2026, 10:54pm UTC](https://forum.xojo.com/t/curlsmultimbs-sharedinstance-autoperform-doesnt-work-inside-transferfinished-handler/88879/6 "2026-09-13T22:54:07Z")

</div>

Another difference is that each CURL being dispatched from my TransferFinished handler has an MTOutputFile, which is not the case in the example.
