Windows error 0x00000280, 640

Detailed Error Information

MULTIPLE_FAULT_VIOLATION[1]

Message ERROR_MULTIPLE_FAULT_VIOLATION
Declared inwinerror.h

This appears to be a raw Win32 error. More information may be available in error 0x80070280.

HRESULT analysis[2]

This is probably not the correct interpretation of this error. The Win32 error above is more likely to indicate the actual problem.
FlagsSeveritySuccess

This code indicates success, rather than an error. This may not be the correct interpretation of this code, or possibly the program is handling errors incorrectly.

Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode0 (0x000)
NameFACILITY_NULL[2][1]
DescriptionThe default facility code.[2][1]
Error Code640 (0x0280)

Possible solutions

2

Safe Whileloop that runs every second

java
android

Use AlarmManager instead.

Register your service to run said action every second (from this question):

  Intent myIntent = new Intent(context, MyServiceReceiver.class);
  PendingIntent pendingIntent = PendingIntent.getBroadcast(context,  0, myIntent, 0);

  AlarmManager alarmManager = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);
  Calendar calendar = Calendar.getInstance();
  calendar.setTimeInMillis(System.currentTimeMillis());
  calendar.add(Calendar.SECOND, 1); // first time
  alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), 1000, pendingIntent);

What you were trying to do is call sleep(1000) on the UI thread (the thread responsible for updating the user-facing UI changes). That is a big no-no on Android, as it makes your app appear to be unresponsive.

EDIT for clarification after user comment:

I don't know how you are setting buttonpressed, but you probably want to use an OnTouchListener:

boolean shouldBeDoingThings = true;
writer = new FileWriter(timedata);
Button.setOnTouchListener(new OnTouchListener() {
    @Override
    public boolean onTouch(View v, MotionEvent event) {
        if(event.getAction() == MotionEvent.ACTION_DOWN){
            shouldBeDoingThings = true;
            return true;
        }
        else  if(event.getAction() == MotionEvent.ACTION_UP){
            shouldBeDoingThings = false;
            return true;
        }
        return false;
    }
});

Then you use messages or intents to start the flow (with the AlarmReceiver sending a message to your Service to set shouldBeDoingThings to true).

After that, somewhere in your service, you can run:

class Task implements Runnable {

        private long lastUpdatedTime;

        public Task()
        {
                 lastUpdatedTime = 0;
        }

        @Override
        public void run() {
                if(shouldBeDoingThings)
                {
                    if(TIME - lastUpdatedTime > 1000)
                    {
                        writer.append(TIME);
                        writer.flush();
                        lastUpdatedTime = TIME;
                    }
                }
            }
        }
    }

All in all, always remember: never block the UI thread. This is applicable for most Mobile SDKs today.

Hope I cleared things up for you.

answered on Stack Overflow Jul 28, 2014 by Robin Eisenberg • edited May 23, 2017 by Community
2

Binary bomb- phase 6

assembly
x86
reverse-engineering

There is only 1 input, which should be obvious from the single strtol call at 8048de3. The number of nodes in the list has nothing to do with the number of inputs.

Since you have only asked about the number of inputs, that's the only thing I answered.

answered on Stack Overflow Apr 20, 2016 by Jester
1

Tesseract works with other languages, but not Tess4J

java
tesseract

TessBaseAPIRect specifies a region on the image. If the region is larger than the image, exceptions will be thrown. Either specify a smaller region or use TessBaseAPIGetUTF8Text for the whole image.

answered on Stack Overflow Aug 7, 2013 by nguyenq
1

Why does the gold linker cause dl_iterate_phdr() not to return my custom note section?

c
linux
elf
dlopen
gold-linker

This code:

foo_t *payload = (foo_t*)(info->dlpi_addr + phdr->p_vaddr);

assumes that your .note.foobar is the very first Elf...Note in the PT_NOTE segment, but you can't make that assumption -- the order of notes in PT_NOTE is not guaranteed; you need to iterate over all of them.

You can verify that there are multiple notes with readelf -n test-{ld,gold}.

It appears that GNU-ld emits a separate PT_NOTE for each .note* section, while Gold merges them all into a single PT_NOTE segment. Either behavior is perfectly fine as far as ELF standard is concerned, though GNU-ld is wasteful (there is no need to emit extra PT_NOTE program headers).

Here is what I get for your test program:

readelf -l test-ld | grep NOTE
  NOTE           0x00000000000002c4 0x00000000004002c4 0x00000000004002c4
  NOTE           0x00000000000002f0 0x00000000004002f0 0x00000000004002f0
  NOTE           0x0000000000000324 0x0000000000400324 0x0000000000400324

readelf -l test-gold | grep NOTE
  NOTE           0x0000000000000254 0x0000000000400254 0x0000000000400254

P.S.

Why does the gold linker cause dl_iterate_phdr() not to return my custom note section?

The direct answer is that dl_iterate_phdr doesn't deal with (or care) about sections. It iterates over segments, and assignment of sections to segments is up for linkers to perform as they see fit.

answered on Stack Overflow Jan 6, 2018 by Employed Russian • edited Jan 6, 2018 by Employed Russian
1

XMS.NET fails when receiving JMS message with RFH2 header at ParseJmsFolder

c#
.net
jms
xms
rfh2

Is the sender application a JMS (or XMS) application or they hand crafting JMS headers? What version of XMS .NET are you using? Using RFHUtil,

I sent a message containing the JMS folder data your provided above and I see that XMS .NET V8.0 works fine. I also had to set the message type as jms_bytes. So I am wondering if the sender application is setting the message type correctly. Without the message type, application will get type casting error while receiving message.

answered on Stack Overflow Oct 30, 2015 by Shashi
0

Safe Whileloop that runs every second

java
android

Use this simple spinning loop,

long now = System.currentMillisec();
while(now < expectedElapsedTime){ now = System.currentMillisec(); }

You won't have the accurate type pause because after the thread sleeps and when it wakes up, it will be scheduled to the CPU-Scheduling and then it may not totally be 10 seconds(if that is the time you want it to stop.)

answered on Stack Overflow Jul 28, 2014 by Shayan Ahmad
0

Safe Whileloop that runs every second

java
android

I don't have the rest of your code to work with, but I managed to write a piece of code that does what you want: you can just change the print statement that I added with what you want to include. I think that what you're missing is the catch statement in the while loop.

public class StackOverflow 
{
    static boolean buttonpressed = true;
    public static void main(String[] args)
    {
    while(buttonpressed != false)
    {
    try 
    {
     System.out.println("hi");
        Thread.sleep(1000);
    }
    catch (Exception e)
    {

    }
    }
    }
}
answered on Stack Overflow Jul 28, 2014 by CodeWiz808

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0