Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7943333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:14:34+00:00 2026-06-04T00:14:34+00:00

Hi everyone Im trying to post some data to a php script using AppMancer

  • 0

Hi everyone Im trying to post some data to a php script using AppMancer AMDownload
here is my code

#include <MAUtil/Moblet.h>
#include <conprint.h>
#include <AMDownload/DownloadManager.h>

using namespace AMDownload;
using namespace MAUtil;

/**
* A Moblet is a high-level class that defines the
* behaviour of a MoSync program.
*/
class MyMoblet : public Moblet, private DownloadRequestListener
{
public:
/**
 * Initialize the application in the constructor.
 */
MyMoblet()
{
    printf("Press zero or back to exit\n");
}

/**
 * Called when a key is pressed.
 */
void keyPressEvent(int keyCode, int nativeCode)
{
    if (MAK_BACK == keyCode || MAK_0 == keyCode)
    {
        // Call close to exit the application.
        close();
    }

    // Print the key character.
    printf("You typed: %c\n", keyCode);
    String password = "p45sw0rd";
    DownloadRequest* req =  DownloadManager::createRequest(this);
    req->setUrl("https://acrscore.usa.cc/accounts/test/upload.php");
    req->setHttpMethod(HTTP_POST);
    req->addPostData("name", "hy");
    DownloadManager::enqueue(req);
}

 void downloadFinished(DownloadRequest* request){}

/**
 * Called when a key is released.
 */
void keyReleaseEvent(int keyCode, int nativeCode)
{
}

/**
 * Called when the screen is touched.
 */
void pointerPressEvent(MAPoint2d point)
{
    // Print the x and y coordinate.
    printf("You touched: %i %i\n", point.x, point.y);
}

private:

};

/**
 * Entry point of the program. The MAMain function
 * needs to be declared as extern "C".
 */
extern "C" int MAMain()
{
Moblet::run(new MyMoblet());
return 0;
}

This is the console output

[28] Emulator connected.
[28] PrintConsole: 
[28] Press zero or back to exit
[28] 
[28] PrintConsole: 
[28] You typed: 4
[28] MoSync Panic 40055. "Attempted to use a resource, but no resources exist." The     panic occurred in the syscall maGetDataSize.
[28] IP:0xefda: crtlib.s:1
[28] IP:0x2b0: C:/MoSync/workspace/uu/main.cpp:20
[28] IP:0x2058e: c:/slave/buildScripts/temp_Nnqh/source/libs/MAUtil/Moblet.cpp:89
[28] IP:0x1a704: c:/slave/buildScripts/temp_Nnqh/source/libs/MAUtil/ListenerSet.h:60
[28] IP:0x13f: C:/MoSync/workspace/uu/main.cpp:13
[28] IP:0x1c7: C:/MoSync/workspace/uu/main.cpp:41
[28] IP:0x696a0: C:/MoSync/AppMancer/AMDownload/DownloadManager.cpp:81
[28] IP:0x6952a: C:/MoSync/AppMancer/AMDownload/DownloadManager.cpp:195
[28] IP:0x67ce0: C:/MoSync/AppMancer/AMDownload/HttpDownloader.cpp:68
[28] IP:0x67a75: C:/MoSync/AppMancer/AMDownload/HttpDownloader.cpp:269
[28] Exit @ IP 0x67a73  SP 0x3ffe9c
[28] IP:0x67a73: C:/MoSync/AppMancer/AMDownload/HttpDownloader.cpp:269

I do not understand my im getting

MoSync Panic 40055. "Attempted to use a resource, but no resources exist." The panic occurred in the syscall maGetDataSize.

I’ve set the post data req->addPostData(“name”, “hy”);

Can someone please help me with this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:14:36+00:00Added an answer on June 4, 2026 at 12:14 am

    there is a bug in the first release of AMDownload for MoSync 3.0.1 – sorry about that. There is a correct version for download from http://appmancer.com/download/AMDownload.zip. Extract the two files into your MoSync/lib/pipe folder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

everyone! i'm trying to create ExtJs form and post some data to my php
Hi Everyone, I am trying to post a form using php mail() function to
I am trying to post on my friend's wall using PHP SDK of FB.
Hello everyone I'm trying to improve my Java skills by solving some problems from
Hello everyone I've been trying to put some objects in an ASP.NET list box
I'm trying to create a web application project template for everyone to use here
Hello everyone I been trying get php uploader working but having a lot of
Hello everyone this is my first post on stack overflow.com I am trying to
I'm trying to post a note using Facebook Graph API. I would like to
Hi Everyone (this is my first post), I am trying to figure a way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.